Hello everyone. Please help to solve the problem:
I made a project using ModBus TCP and ESP 32, ESP is used as a ModBus slave and an access point via WLAN, everything works when the master modbus is connected, but if the master is disconnected, then reconnection is not possible. To reconnect to the modbus slave, you need to reboot the ESP.
Reconnecting to ModBus slave TCP, after disconnecting
-
- Posts: 2
- http://meble-kuchenne.info.pl
- Joined: Mon Sep 18, 2023 10:44 am
Reconnecting to ModBus slave TCP, after disconnecting
- Attachments
-
- Flowcode1.fcfx
- (15.31 KiB) Downloaded 173 times
Re: Reconnecting to ModBus slave TCP, after disconnecting
Has no one encountered this problem? Why is it impossible to reconnect after disconnecting the TCP master, only after restarting the ESP (TCP slave)?
-
- Valued Contributor
- Posts: 1685
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 374 times
- Been thanked: 583 times
Re: Reconnecting to ModBus slave TCP, after disconnecting
Hi
Just guessing as I can't look at your chart just now, but you may need to have the slave check that it is connected, and if not then reinstigate connections.
Regards
Just guessing as I can't look at your chart just now, but you may need to have the slave check that it is connected, and if not then reinstigate connections.
Regards