how to read modbusTCP slave device with modbusTCP Master On ESP8266
aandrie77 opened this issue · comments
In terms of ModbusTCP slave_id is unit_id (last argument):
uint16_t readCoil(IPAddress ip, uint16_t offset, bool* value, uint16_t numregs = 1, cbTransaction cb = nullptr, uint8_t uint = MODBUSIP_UNIT);