The server is disconnected and "user_esp_platform_discon_cb" has no callback.

456vv
Posts: 6
Joined: Tue Jan 17, 2017 5:17 pm

The server is disconnected and "user_esp_platform_discon_cb" has no callback.

Postby 456vv » Tue Jan 17, 2017 5:20 pm

With non-rtos firmware, the server automatically disconnects the TCP connection, and "user_esp_platform_discon_cb" does not have a callback.

User avatar
pratik
Posts: 460
Joined: Wed Jun 29, 2016 7:17 pm
Location: India
Contact:

Re: The server is disconnected and "user_esp_platform_discon_cb" has no callback.

Postby pratik » Fri Jan 20, 2017 2:02 pm

user_esp_platform_discon_cb is not a standard SDK function in the latest nonOS SDK. Can you please specify which version of SDK you are using?
Use espconn_regist_disconcb() to register disconnect callback function.

Or please refer to wifi_set_event_handler_cb example on page 80 of nonOS SDK API reference v.2.0.1.
Regards,
Pratik Panda
Website: http://www.PratikPanda.com

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):
http://www.iot-bits.com

Who is online

Users browsing this forum: No registered users and 3 guests