blynkkk / blynk-library

Blynk library for IoT boards. Works with Arduino, ESP32, ESP8266, Raspberry Pi, Particle, ARM Mbed, etc.
https://blynk.io
MIT License
3.83k stars 1.39k forks source link

Call BlynkOnDisconnected() on unsuccessful write #371

Closed sysoleg closed 6 years ago

sysoleg commented 6 years ago

Description

Call BlynkOnDisconnected() on unsuccessful write

When client is unable to succeed writing to socket (due to broken internet connection, for example), connection to Blynk server is resetting. But, for some reason, the call to BlynkOnDisconnected() was commented out, so sketch is unable to know about such disconnect.

Tested on ESP8266 platform.