What should I do to completely close the tcpClient connection with mcu?
问题 I'm now working on a tcp socket connection to tcp server running in ESP32. It works fine for the communication, but I failed to close the connection. After searching for the solution on close/reset tcpClient, it seems that the proper way to close a tcpClient should be: tcpClient.GetStream().Close(); tcpCLient.Close(); The example in msdn also use this method. But unforunately, it cannot really close the connection. As checked in the mcu, the connection has not been closed. And it will not be