Your pourpose :
Remove mb:connect() and use 0.0.0.0 as listening IP: mb:open('0.0.0.0', 502)
Sorry, but it doesn't work for me, only Modbus RTU run correctly (502 port is ok on LM and gateway) :
Note : I use LM as Modbus slave with an EGX150 Schneider Gateway
???
Remove mb:connect() and use 0.0.0.0 as listening IP: mb:open('0.0.0.0', 502)
Sorry, but it doesn't work for me, only Modbus RTU run correctly (502 port is ok on LM and gateway) :
Note : I use LM as Modbus slave with an EGX150 Schneider Gateway
???