Create device using telemetry data using rule engine:Thingsboard
In this article, device provisioning using telemetry data is discussed. The use case considered in BLE gateway reading BLE beacons or tags.
Steps followed:
- Create Profile in Thingsboard:https://thingsboard.io/docs/user-guide/device-profiles/
2. To create device through API , Thingsboard provides two keys with these keys we will be able to create device.
3. Create rule engine or import rule engine using json:
4. Edit the payload to add provision key from the profile :
This payload creates devices based on the key present in telemetry key of interest.
Get Bytemate Pvt Ltd’s stories in your inbox
Join Medium for free to get updates from this writer.
5. The MAC id of BLE tag or some unique identifier can be made as device id as shown below
6. REST api plugin with end point http://demo.thingsboard.io/api/v1/provision will create devices
7. Update the payload of each BLE beacon or tag in its particular device latest telemetry is done by changing the originator.
8. Example payload to be published by simulator or real BLE Gateway after reading tags
Reference links:









