Closed stritti closed 2 years ago
To make request exactly as CASModbusScanner you need to specify UnitId
:
uint16_t trans = mb.readHreg(remote, 514, res, REG_COUNT, cb, SLAVE_ID);
Otherwise standard ignore
= 255 value is used.
Awesome, @emelianov that was the missing point! Now it works. I searched for hours ... Many thanks for this hint.
Hi, I am very new using modbus. I want to query data of a component, which I was able by CASModbusScanner:
How will this be done using modbus-esp8266? I tried following Code but instead of value
21
I receive13792
on ESP.I use following code:
In console I just get: