github Azure/azure-iot-sdk-csharp preview_2022-2-18
Microsoft Azure IoT SDKs for .NET Preview Release 2022-02-18

latest releases: 2024-11-21, 2024-03-28, lts_2024-03-29_patch10...
pre-release2 years ago

SDK updates from main branch.

This release is bringing changes from the main release 2022-01-26.
The previous preview release was based on the main release 2021-08-11.

Microsoft.Azure.Devices.Client 1.41.0-preview-001

  • Updates from GA release 2022-01-26.
  • Update native Azure IoT Plug and Play (PnP) APIs:
    • Update the command and property callback APIs to no longer require users to pass a context object in the callback implementation.
      • Command callback function is updated from Func<CommandRequest, object, Task<CommandResponse>> callback to Func<CommandRequest, Task<CommandResponse>> callback. Since SubscribeToCommandsAsync callback is invoked for all command invocation requests,
        the user context passed in would be the same for all scenarios. This user context can be set at a class level instead.
      • Property callback function is updated from Func<ClientPropertyCollection, object, Task> callback to Func<ClientPropertyCollection, Task> callback. Since SubscribeToWritablePropertyUpdateRequestsAsync callback is invoked for all property update events, the user context passed in would be the same for all scenarios. This user context can be set at a class level instead.
    • .NET property private setters have been removed and the property has been made readonly instead.
    • Payload getters in CommandRequest have been simplified
      • public string DataAsJson { get; } has been updated to public string GetPayloadAsString().
      • public T GetData<T>() has been updated to public T GetPayload<T>().
      • public byte[] GetDataAsBytes() has been updated to public ReadOnlyCollection<byte> GetPayloadAsBytes().
    • Payload getter in CommandResponse has been simplified
      • public string ResultAsJson { get; } has been updated to public object Payload { get; }.

Microsoft.Azure.Devices 1.38.0-preview-001

Microsoft.Azure.Devices.Shared 1.31.0-preview-001

Microsoft.Azure.Devices.Provisioning.Client 1.20.0-preview-001

Microsoft.Azure.Devices.Provisioning.Transport.Mqtt 1.18.0-preview-001

Microsoft.Azure.Devices.Provisioning.Transport.Amqp 1.17.0-preview-001

Microsoft.Azure.Devices.Provisioning.Client.Transport.Http 1.16.0-preview-001

Microsoft.Azure.Devices.Provisioning.Security.Tpm 1.15.0-preview-001

Microsoft.Azure.Devices.Provisioning.Service 1.19.0-preview-001

Don't miss a new azure-iot-sdk-csharp release

NewReleases is sending notifications on new releases.