HTTP to TagoIO JSON transition

Hello,

Could anyone recommend the correct snippet for HTTP to TagoIO JSON transition based on the following payload example?

POST] HTTP Request:

“From: 132.145.241.176 [Unknown] - Content-Type: application/json - Token Ending: 68dcc”

22:16:48:

Raw payload:

{ “rcvTime”: 1726258607, “srcImsi”: “901288910226417”, “ID”: “24090254”, “ID_unit”: "24090254 ", “Battery voltage”: 3570, “Battery voltage_unit”: “3570 mV”, “RSSI”: -66, “RSSI_unit”: “-66 dB”, “T”: 22, “T_unit”: “22 C”, “T2”: 0, “T2_unit”: “0 C” }

22:16:48:

Connection refused, invalid payload:

“[object Object]”

Best regards,

Hi,

To transition your HTTP payload to a TagoIO JSON format, you have to utilize the TagoIO Payload Parser. The Payload Parser allows you to handle raw payloads from devices and convert them into a format that TagoIO can understand and process.

Here is some documentation to guide you in creating your own Payload Parser to handle the data.
https://help.tago.io/portal/en/kb/articles/118-building-your-own-parser#Tutorials
https://help.tago.io/portal/en/kb/articles/147-payload-parser