Introduction
Sensor library API is a service that offers Pilot Things decoding engine as a service.
Using the library you can decode all the payload data coming from your sensors.
The list of sensors supported is here : https://www.pilot-things.com/smart-platform/sensor-library
To use the service you must have a valid token obtained during subscription.
Decoding service
The decoding service is available at https://sensor-library.pilot-things.net/decode
Your POST request must contains 2 JSON fields:
- productId : product Id of your sensor.
- payload : message to decode
The product ids list is available here : https://www.pilot-things.com/smart-platform/sensor-library
Your Header must have the x-api-key set to the token you received when you subscribed the service.
Here is an example using Postman :
Optional metadata JSON field could be used for LoRaWAN devices
"metadata": "{JSON_FOR_METADATA}"
like “{\”FPort\”: 1}” to specify fport = 1
Comments
0 comments
Please sign in to leave a comment.