ux4iot
Search…
ux4iot
Introduction
Quickstart
Setup
Create your ux4iot Instance
Configure your existing IoT Hub
Create IoT Hub and linked ux4iot
Using a separate Event Hub
Developing web apps with React
Installing the library
Initialization
Hooks
Grant Request Function
Tutorial using create-react-app
Implementing your custom security backend
Introduction
Security Backend
Security Backend Examples
Admin SDKs
Admin REST API
Resources
Pricing
Performance
Limitations
FAQ
Changelog
Made with ❤️ at Device Insight
Powered By
GitBook
Configure your existing IoT Hub
In order to use the following hooks, you need to perform additional setup steps:
useConnectionState
useDeviceTwin
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:
AZ CLI
az iot hub route create
\
--route-name ux4iot-twinchanges
\
--hub-name IOT_HUB_NAME
\
--resource-group RESOURCE_GROUP_OF_IOT_HUB
\
--condition
true
\
--endpoint events
\
--source twinchangeevents
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:
AZ CLI
az iot hub route create
\
--route-name ux4iot-connectionevents
\
--hub-name IOT_HUB_NAME
\
--resource-group RESOURCE_GROUP_OF_IOT_HUB
\
--condition
true
\
--endpoint events
\
--source deviceconnectionstateevents
Setup - Previous
Create your ux4iot Instance
Next - Setup
Create IoT Hub and linked ux4iot
Last modified
5mo ago
Copy link
Outline
Device Twin Changed Events
Connection State Events