Skip to main content

IoT Hub provider 1.0.0 - Rebuilt on the Provider SDK

Beacon Tower Team
Beacon Tower Developer Team

The IoT Hub provider now runs on the Provider SDK, like the MQTT provider. Devices keep talking to Azure IoT Hub as before. Provisioning, twins, direct methods and device identity now work the same way for every provider. See IoT Hub provider.

What changes for API clients​

  • Provisioning uses the SDK request shape: options, templateId, authMethod, enabled, externalId. The hub is no longer named in the request. See Your first asset via the API.
  • A provisioned client's providerData has hostName, primaryKey, secondaryKey, primaryConnectionString, secondaryConnectionString and authenticationType.
  • Delivery from the hub into the platform is at least once. A message the provider has confirmed is stored in the platform's ingress stream. After a provider restart a message can arrive twice; repeated message ids are dropped inside the platform's duplicate window.
  • Connection state arrives as the system signal bt_connectedState, so flows and alarms can use it.

No longer supported​

  • Writing directly to the input Event Hub. The hub is the only entry point.
  • IoT Edge devices and modules.
  • Cloud-to-device messages. Use desired properties or direct methods.

Roll-out​

Tenants move one at a time. Existing devices and their keys are imported; a device does not need to be re-provisioned or re-keyed. Provider templates saved for the old provider are migrated to the options every SDK provider reads (desiredProperties and tags); the twin tag bt_parser becomes parser. IoT Edge templates are not migrated.