New LTS release for Azure IoT Hub SDK for .NET

Published May 04 2021 11:27 AM 1,242 Views
Microsoft

The .NET Azure IoT Hub SDK team released the latest LTS (Long-Term Support) of the device and service SDKs for .NET. This LTS version, tagged lts_2021-2-18, adds bug fixes, some improvements, and new features over the previous LTS (lts_2020-9-23), such as:

- Handle twin failures using AMQP.

- Make the DeviceClient and ModuleClient extensible.

- Install the device chain certificates using the SDK.

- Make DPS class ClientWebSocketChannel disposable.

- Use CultureInvariant for validating device connection string values.

- Reduce memory footprint of CertificateInstaller.

- Add an API to set a callback for receiving C2D.

- Make set desired property update method thread safe.

- Add support for disabling callbacks for properties and methods.

- Expose DTDL model Id property for pnp devices.

- Make payload in the invoke command API optional.

- Add APIs to get attestation mechanism.

- Improved logging for noting when the no-retry policy is enabled, in the MQTT/AMQP/HTTP transport layers, in the HttpRegistryManager, and in the AmqpServiceClient.

 

For detailed list of feature and bug fixes please consult the comparing changes with previous LTS: Comparing lts_2020-9-23...lts_2021-3-18 · Azure/azure-iot-sdk-csharp (github.com)

The following NuGet versions have been marked as LTS.

  • Microsoft.Azure.Devices: 1.31.0
  • Microsoft.Azure.Devices.Client: 1.36.0
  • Microsoft.Azure.Devices.Shared: 1.27.0
  • Microsoft.Azure.Devices.Provisioning.Client: 1.16.3
  • Microsoft.Azure.Devices.Provisioning.Transport.Amqp: 1.13.4
  • Microsoft.Azure.Devices.Provisioning.Transport.Http: 1.12.3
  • Microsoft.Azure.Devices.Provisioning.Transport.Mqtt: 1.14.0
  • Microsoft.Azure.Devices.Provisioning.Security.Tpm: 1.12.3
  • Microsoft.Azure.Devices.Provisioning.Service: 1.16.3

 

More detail on the LTS 2021-03-18 version can be found here.

 

Enjoy this new LTS version.

Eric for the Azure IoT .NET Managed SDK team

%3CLINGO-SUB%20id%3D%22lingo-sub-2323148%22%20slang%3D%22en-US%22%3ENew%20LTS%20release%20for%20Azure%20IoT%20Hub%20SDK%20for%20.NET%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2323148%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20.NET%20Azure%20IoT%20Hub%20SDK%20team%20released%20the%20latest%20LTS%20(Long-Term%20Support)%20of%20the%20device%20and%20service%20SDKs%20for%20.NET.%20This%20LTS%20version%2C%20tagged%20lts_2021-2-18%2C%20adds%20bug%20fixes%2C%20some%20improvements%2C%20and%20new%20features%20over%20the%20previous%20LTS%20(lts_2020-9-23)%2C%20such%20as%3A%3C%2FP%3E%0A%3CP%3E-%20Handle%20twin%20failures%20using%20AMQP.%3C%2FP%3E%0A%3CP%3E-%20Make%20the%20DeviceClient%20and%20ModuleClient%20extensible.%3C%2FP%3E%0A%3CP%3E-%20Install%20the%20device%20chain%20certificates%20using%20the%20SDK.%3C%2FP%3E%0A%3CP%3E-%20Make%20DPS%20class%20ClientWebSocketChannel%20disposable.%3C%2FP%3E%0A%3CP%3E-%20Use%20CultureInvariant%20for%20validating%20device%20connection%20string%20values.%3C%2FP%3E%0A%3CP%3E-%20Reduce%20memory%20footprint%20of%20CertificateInstaller.%3C%2FP%3E%0A%3CP%3E-%20Add%20an%20API%20to%20set%20a%20callback%20for%20receiving%20C2D.%3C%2FP%3E%0A%3CP%3E-%20Make%20set%20desired%20property%20update%20method%20thread%20safe.%3C%2FP%3E%0A%3CP%3E-%20Add%20support%20for%20disabling%20callbacks%20for%20properties%20and%20methods.%3C%2FP%3E%0A%3CP%3E-%20Expose%20DTDL%20model%20Id%20property%20for%20pnp%20devices.%3C%2FP%3E%0A%3CP%3E-%20Make%20payload%20in%20the%20invoke%20command%20API%20optional.%3C%2FP%3E%0A%3CP%3E-%20Add%20APIs%20to%20get%20attestation%20mechanism.%3C%2FP%3E%0A%3CP%3E-%20Improved%20logging%20for%20noting%20when%20the%20no-retry%20policy%20is%20enabled%2C%20in%20the%20MQTT%2FAMQP%2FHTTP%20transport%20layers%2C%20in%20the%20HttpRegistryManager%2C%20and%20in%20the%20AmqpServiceClient.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20detailed%20list%20of%20feature%20and%20bug%20fixes%20please%20consult%20the%20comparing%20changes%20with%20previous%20LTS%3A%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2Fazure-iot-sdk-csharp%2Fcompare%2Flts_2020-9-23...lts_2021-3-18%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EComparing%20lts_2020-9-23...lts_2021-3-18%20%C2%B7%20Azure%2Fazure-iot-sdk-csharp%20(github.com)%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EThe%20following%20NuGet%20versions%20have%20been%20marked%20as%20LTS.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EMicrosoft.Azure.Devices%3A%201.31.0%3C%2FLI%3E%0A%3CLI%3EMicrosoft.Azure.Devices.Client%3A%201.36.0%3C%2FLI%3E%0A%3CLI%3EMicrosoft.Azure.Devices.Shared%3A%201.27.0%3C%2FLI%3E%0A%3CLI%3EMicrosoft.Azure.Devices.Provisioning.Client%3A%201.16.3%3C%2FLI%3E%0A%3CLI%3EMicrosoft.Azure.Devices.Provisioning.Transport.Amqp%3A%201.13.4%3C%2FLI%3E%0A%3CLI%3EMicrosoft.Azure.Devices.Provisioning.Transport.Http%3A%201.12.3%3C%2FLI%3E%0A%3CLI%3EMicrosoft.Azure.Devices.Provisioning.Transport.Mqtt%3A%201.14.0%3C%2FLI%3E%0A%3CLI%3EMicrosoft.Azure.Devices.Provisioning.Security.Tpm%3A%201.12.3%3C%2FLI%3E%0A%3CLI%3EMicrosoft.Azure.Devices.Provisioning.Service%3A%201.16.3%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMore%20detail%20on%20the%20LTS%202021-03-18%20version%20can%20be%20found%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2Fazure-iot-sdk-csharp%2Freleases%2Ftag%2Flts_2021-3-18%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEnjoy%20this%20new%20LTS%20version.%3C%2FP%3E%0A%3CP%3EEric%20for%20the%20Azure%20IoT%20.NET%20Managed%20SDK%20team%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2323148%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EThe%20.NET%20Azure%20IoT%20Hub%20SDK%20team%20released%20the%20latest%20LTS%20(Long-Term%20Support)%20of%20the%20device%20and%20service%20SDKs%20for%20.NET.%20This%20LTS%20version%2C%20tagged%20lts_2021-2-18.%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ericmitt_0-1620147567713.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F277929iBEA772FF27C61854%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ericmitt_0-1620147567713.png%22%20alt%3D%22ericmitt_0-1620147567713.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Co-Authors
Version history
Last update:
‎May 04 2021 11:54 AM
Updated by: