Configure your existing IoT Hub
Last updated
Last updated
We recommend using a separate EventHub for the iotHubEventHubConnectionString to subscribe to messages. Your IoTHub should forward the messages to this EventHub or be consumed by an azure function that then sends the messages to this EventHub. This is because of a bug (appearantly in the built-in EventHub of the IoTHub) that causes messages to get lost.
In order to use your IoTHub you can still provide the Shared Access Key of the IoTHub with Registry Read and Service Connect priviledges, to get access to the direct method, device twin and desired property features of ux4iot.
In order to use the following hooks, you need to perform additional setup steps:
In both cases, the IoT Hub routing must be configured.
For 'Device Twin Changed Events', which are required for the useDeviceTwin hook, a routing rule must be added as follows:
If you want to use Azure CLI, you can accomplish the same in the following way:
For 'Connection State Events', which are required for the useConnectionState hook, a routing rule must be added as follows:
If you want to use Azure CLI, you can accomplish the same in the following way: