eModbus / eModbus

Modbus library for RTU, ASCII and TCP protocols. Primarily developed on and for ESP32 MCUs.

Home Page:https://emodbus.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ModbusTCP without ServerID

Miq1 opened this issue · comments

Discussed in #303

Originally posted by Typhoor June 13, 2023
I have an application with a ModbusServerTCPAsync where the querying system will use different UnitIDs depending on the situation.
The "Modbus Standard" does not enforce a ServerID for ModbusTCP, but rather speaks about a UnitID which should be just returned or used for routing (like in bridge situations).
grafik

Registering Worker on ModbusServerTCPAsync always asks for a ServerID ?!?
Shouldn't it be possible use use ServerID=0 as BroadcastID to answer all UnitIDs.

So how shall I handle this, other then registering 1...247 Worker or change the libraries source code ?
Any ideas ? Hidden possibilities?