arduino-ESP8266 icon indicating copy to clipboard operation
arduino-ESP8266 copied to clipboard

[question] Close socket from TCP client

Open sergiotudela opened this issue 8 years ago • 0 comments

Hi,

Regarding the API to close a socket a int is expected as id,

https://github.com/Diaoul/arduino-ESP8266/blob/master/ESP8266.cpp#L431

And from the examples: https://github.com/Diaoul/arduino-ESP8266/blob/master/examples/Complete/Complete.ino#L154 that parameter is not present.

What value should I take? Maybe getId() https://github.com/Diaoul/arduino-ESP8266/blob/master/ESP8266.cpp#L556 ?

Note: https://github.com/esp8266/esp8266-wiki/wiki/at_0.9.1

sergiotudela avatar May 26 '16 15:05 sergiotudela