On 11/04/2019 08:33, tirmalabenikasibeni wrote:
Hi all,
I am developing a MODBUS Server which can serve multiple clients
simultaneously, using LwIP 2.0.3 & netconn and FreeRTOS 9.0.0 and
STM32H743BI.
A client (my pc in this case) can connect the server with no problem. When
disconnected and connected again there is no problem also, but if it tried
to connect 3. time, connection can't be established and netconn_accept
returns ERR_ABRT.
This is a part of my lwipopts.h:
And my thread and handler:
Please forgive me if I waste your time, but I am struggling for a couple of
days.
Thank you!
--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users
I know its pseudo code, but in your modbus_handler() thread function do
you actually break out of the while(TRUE) loop and call netconn_close()
and netconn_delete() when the remote client disconnects ? (I'm not sure
if both netconn_close() and netconn_delete() are needed). If not the
available connections will be used up after a time.
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users