I'm using the API netconn of LWIP with a STM32F746NNG-NUCLEO.
I can send some data over TCP/IP using netconn_write()
in the sunny case (no disconnection, perfect weather for 4G modem). But, in a case where the transmission failed, how can I know that it failed?
Because, at the moment, when I simulate a disconnection of my server, netconn_write()
always returns an OK, which is clearly not right because data had never been received by the server.
Does anybody know how to fix it?