MODBUS reading, data sending using POST

Hello

I need to make this POST to my web IoT platform

POST --data “{“temperature”: 12, “Status_OK”:true, “pressure”: 1013}” https://demo.thingsboard.io/api/v1/$ACCESS_TOKEN/attributes --header “Content-Type:application/json”

The three data are collected from a modbus communication at three different address (of course)

My question is : how can build the previous POST with specific data name (temperature, pressure, …) and the collected values in the specific modbus registers.

Thanks,

Hugues

This topic was automatically closed after 15 days. New replies are no longer allowed.