One way to send data to Pilot Things is to use the ipe-http. This node give you an end-point on which you can send your messages by using http.
Configuration:
To use this end point you must :
- Find a client http (java, javascript, node-red, postman)
- configure a POST operation
- use the url of your Pilot-Things instance example : {{your_domain}}/om2m/ipe-http/up-link
- you can send data with simple http message or https.
- this end-point use a basic authentification security, see your configuration for your authentification information
- example of json payload:
{
"body": "HEXADECIMAL_PAYLOAD",
"timestamp": 1581954034000,
"id": "sensor_unique_id",
"metadata: {
"what": "ever json",
"you": "want"
},
"connectivityType": "chose_the_connectivity_you_are_using"
}
Notes:
- ConnectivityType possible values:
LORA, SIGFOX, CELLULAR, ETHERNET, WIFI, BLUETOOTH, BACNET, MODBUS, IO_ANALOG, IO_DIGITAL, ENOCEAN, ZIGBEE, ZWAVE, NFC, USB, IEEE_LR_WPAN, DALI, UNKNOWN - Timestamp must be epoch seconds (https://www.epochconverter.com/)
- Body must be an hexadecimal payload
- Id must be unique for each sensor
- Metadata is a json field, you can put every thing you want inside as long it's a json formatted data
Example of node-red configuration
To format the payload or configure the node-red nodes please refer to the official documentation : https://nodered.org/docs/
Comments
0 comments
Please sign in to leave a comment.