
—
How To Use Collection Data
—
M2M Gateway PLC Communication Settings
—
90
—
2.
Send Data to Azure IoT Hub
The CONPROSYS has the Send Azure IoT function to send data to Azure IoT Hub.
The command for sending data is implemented with the "CONPROSYS VTC". As described in the
previous method to send data, a file is created and transferred with "Send Azure IoT".
Note that the particular file format needs to be used for Send Azure IoT.
From Setting menu, go to the "Azure IoT Hub" and set the details.
File Format to Create File with Send Azure IoT
The "Send Azure IoT" item converts the specified file to json format and sends the message to Azure
IoT Hub.
In the CSV file created with CONPROSYS VTC, the first line is used for an item name and the second
and subsequent lines are used for data.
The following shows the example contents of CSV file converted to JSON format data to be sent to
IoT Hub.
*Note that the first line in CSV file always needs a header (the item name).
Furthermore, data writing from Azure IoT Hub can be supported by linking with Azure IoT Hub.
For detailed information, visit the CONTEC website and download the "Technical Guide CONPROSYS
VTC Azure IoT Data Transfer Setting" and refer to it.
Data example
Format Spec