Configure your existing IoT Hub

In order to use the following hooks, you need to perform additional setup steps:

In both cases, the IoT Hub routing must be configured.

Device Twin Changed Events

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:

Connection State Events

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:

Last updated

Was this helpful?