Hi, I have a TRB255 with firmware TRB2_R_00.07.14.4. I have a Modbus device and I want to send its data via MQTT to my Mosquitto broker. I’ve attached screenshots because I can’t get it to send data. Can you help me?
On modbus TCP over serial Gateway:
Create “Ecowitt”
Data to Server:
a) Data to server collections:
name: “RER”
timer: “Period”
period: “15”
Format type: “custom”
Format string: “%input1” ??? (I don’t know what’s going on here)
b) Server configuration I put:
Type: “MQTT”
Server address: xxxx
Port: 1883
Topic: “ecowitt1”
etc
“input1” data configuration
name: “input1”
type: “modbus”
Format Type: (“temperature”: “%Temp%”} (I don’t know what goes here)
Images are a bit too small to properly see everything, but that’s okay.
Regarding the address & port you’ve set in your Modbus device configuration, the address is supposed to be the IP address of the Modbus TCP Server device, same goes for the port - please ensure that these are correct. You can also click on “Test” under the “Requests configuration” section:
Hello, I have a similar request. I want to send modbus data to our MQTT Broker.
I’m able to configure the Modbus TCP Client to request data from my modbus device. I have configured 5 request configurations and I’m able to receive the data from the register.
In the Modbus TCP Client configuration screen there is an enable switch when you scroll to the right. When I turned it on the data was being requested and I could send it with Data to Server.