About Sending Data to Azure IoT Hub
The following conditions apply when you send data to Azure IoT Hub:
- Data in Azure IoT Hub is stored for maximum seven days, after which it is deleted from the hub. Therefore, you must consume the data within seven days. Based on your requirement, you can store it in a relevant Azure storage. You can then use Azure functions or streaming analytics to analyse the data.
- The data sent to Azure IoT Hub is in the JSON format with UTF-8 encoding. To reduce the message size and avoid repetition of tag properties, the tag values are in the format of the KairosDB data points:
[{"<tag name>":"Cloud_GCYSS3X2E.Simulation00001","<time stamp, tag value, and quality>":[[1586260104000,132560.203125000,3]]}
Before add a collector instance to send data to Azure IoT Hub, you must perform the following steps:
- Set up an Azure IoT Hub account.Note: To choose the correct Azure IoT Hub based on your requirement, refer to https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-quotas-throttling
- Create devices in Azure IoT Hub. These devices store the data received from a collector. We recommend that you create one device per collector instance.