Microsoft.Azure.Devices.Client 1.33.0
- Add support for disabling callbacks for receiving twin property updates and method invocations.
- Setting a
null
callback handler will result in unsubscription of the callback that the device was previously subscribed to. - Unsubscription over AMQP results in closure of the links. A subsequent subscription will result in opening of the links again. For this reason, frequent subscription-unsubscription should be avoided, as service might end up throttling your requests.
- Setting a
- Add a callback for receiving C2D messages over MQTT and AMQP.
- The polling
ReceiveAsync()
APIs will still be supported over MQTT, AMQP and HTTP. - The callback is not supported over HTTP, as any kind of "receiving" operation on HTTP would need to implement a polling call underneath anyway.
- Once you set a callback for receiving C2D messages over MQTT and AMQP, any subsequent call to
ReceiveAsync()
would always returnnull
. You can switch back to the pollingReceiveAsync()
API by unsubscribing to the callback (setting anull
callback handler will result in unsubscription of the callback). - Unsubscription over AMQP results in closure of the telemetry receiving link. A subsequent subscription/invocation of
ReceiveAsync()
will result in opening of the telemetry receiving link. For this reason, frequent subscription-unsubscription should be avoided, as service might end up throttling your requests.
- The polling
- Add an option to
ClientOptions
to configure if the device client should assign a random GUID forMessage.MessageId
by default in the event the user doesn't set theMessageId
. - Updated reference to
Microsoft.Azure.Devices.Shared
nuget.
Bug fixes:
- Add additional comments to
DeviceClient
public APIs. - Ensure
IDisposable
types used in the client library are disposed properly.
Microsoft.Azure.Devices 1.28.0
- Add
EventSource
logging toServiceClient
. EnableAzure.Amqp
logs to be written to our SDKs event provider. - Add an option to
ServiceClientOptions
to configure if the service client should assign a random GUID forMessage.MessageId
by default in the event the user doesn't set theMessageId
. - Updated reference to
Microsoft.Azure.Devices.Shared
nuget.
Bug fixes:
- Fix
Message
disposal behavior, which was preventing the SDK from being able to resend the same IoT Hub message multiple times (#1638)
Microsoft.Azure.Devices.Shared 1.26.0
- Add an enum for configuring if SDK should assign a value of
Message.MessageId
if user does not set one.
Microsoft.Azure.Devices.Provisioning.Client 1.16.2
- Updated reference to
Microsoft.Azure.Devices.Shared
nuget.
Microsoft.Azure.Devices.Provisioning.Transport.Amqp 1.13.3
- Updated reference to
Microsoft.Azure.Devices.Shared
nuget.
Microsoft.Azure.Devices.Provisioning.Transport.Http 1.12.2
- Updated reference to
Microsoft.Azure.Devices.Shared
nuget.
Microsoft.Azure.Devices.Provisioning.Transport.Mqtt 1.13.2
- Updated reference to
Microsoft.Azure.Devices.Shared
nuget.
Microsoft.Azure.Devices.Provisioning.Security.Tpm 1.12.2
- Updated reference to
Microsoft.Azure.Devices.Shared
nuget.
Microsoft.Azure.Devices.Provisioning.Service 1.16.2
- Updated reference to
Microsoft.Azure.Devices.Shared
nuget.