johanbn2000
Dear All,

I install OpenPLC on Raspi (IP 192.168.0.103) and use Wemos ESP8266 (IP 192.168.0.100) as Slave.
All run well until I try to access the slave with ScadaBr that install on my PC (192.168.0.101).
The Slave device seems to loss connection with Raspi with the Buch of error msg, such as :

OpenPLC Runtime starting...
Interactive Server: Listening on port 43628
Device Test8266 is disconnected. Attempting to reconnect...
Connected to MB device Test8266
Issued start_modbus() command to start on port: 502
Modbus Server: Listening on port 502
Modbus Server: waiting for new client...
Issued stop_dnp3() command
Modbus Server: Client accepted! Creating thread for the new client ID: 10...
Modbus Server: waiting for new client...
Modbus Server: Thread created for client ID: 10
Modbus Server: client ID: 10 has closed the connection
.........
....

Please advise.
Earliest response will be highly appreciated.

Thank you.
Quote 0 0
thiagoralves
From the log messages, there is nothing wrong with your esp connection. What makes you think that it is not working? The repetitive connect/disconnect messages you see on the log are related to ScadaBR connecting and disconnecting from the Pi at every request. This is not an error. If you choose the “TCP keep alive” option on ScadaBR it will keep the connection active for every request
Quote 0 0
johanbn2000
Dear Thiagoralves,

Thanks for your prompt reply.
Where is "TCP keep alive" option in ScadaBR? I can not find it. Please advise.
Your earliest reply will highly appreciated.

Thanks
Johan
Quote 0 0
thiagoralves
https://openplc.discussion.community/post/problem-while-connecting-one-variable-with-another-10052478?pid=1307929258&highlight=keep+alive
Quote 0 0
johanbn2000
Wow, thanks. It work fine now.
Quote 0 0