Setting up IoT integration
To set up IoT integration on the platform, complete the following steps:
- Create a telemetry collection and configure the
_granularityand_expirytimeseries properties for your purpose with one of the following APIs:- REST: Create Named Telemetry Collections
- JavaScript: IafItemSvc.createNamedUserItems()
- Create telemetry items to represent your device sensors with a source id that refers to your IoT device's unique id with one of the following APIs:
- Create a normalization script to normalize the IoT data to Item Service readings. For more information, see Normalization script. To post the script to the platform, use one of the following APIs:
- REST: Create Scripts
- JavaScript: IafScripts.create()
- Create a telemetry config file that defines your bindings. For more information, see Telemetry config. Post your telemetry config file to the Item Service with the Create Telemetry Config REST API.
- Configure your MQTT gateway to publish data to ActiveMQ. For more information, see ActiveMQ configuration.