tcpesp8266sming

Stop TCP server in ESP8266


I am using ESP8266 WiFi module with the SMING framework. I would like to stop a TCP server. This is how I started the TCP server;

tcpServer.listen(8018);

What is the code to stop it?


Solution

  • You can try the following and see if it works in your situation:

    if (tcpServer) delete tcpServer;
    

    Hope this helps.