0

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?

Adrian Mole
  • 49,934
  • 160
  • 51
  • 83
  • 1
    [`netconn_write`](https://doc.ecoscentric.com/ref/lwip-api-sequential-netconn-write.html)_"...This function is only used for TCP connections. It puts the data pointed to by data __on the output queue__ for the TCP connection `conn` ...."_ – Richard Critten Jan 06 '23 at 16:06

0 Answers0