Hello,
Is it possible to modify the transmission format in MQTT Modbus Gateway on a RUT956? For example, a script that reads data from MQTT like:
{ "Device": "RUT", "Relay": 1 }
or:
"RUT": { "Relay": 1 }
or:
{ "RUT_Relay": 1 }
…and then the script would translate it depending on what’s set in the Modbus client or into something like:
{
"cookie": 65432,
"type": 0,
"host": "192.168.1.1",
"port": 502,
"timeout": 1,
"server_id": 1,
"function": 6,
"register_number": 203,
"value": 0
}
I have no idea where to start or any example to go by. I’m trying to fully integrate it into ThingsBoard and it seems very complicated, even though it’s an extremely good device from many points of view. But I’m forced to give up on it because I can’t manage to write Modbus registers over MQTT in a simpler, scalable way. It seems bad idea to me to use a Raspberry Pi just to act as a gateway for ThingsBoard.
Thanks for help!
Have a nice day,