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.81k stars 1.38k forks source link

Bridge stops working during long-term run #67

Closed doom369 closed 8 years ago

doom369 commented 8 years ago

http://community.blynk.cc/t/home-domotics/3472

vshymanskyy commented 8 years ago

May it be that server "forgets" the auth token bridge setup after device disconnects/reconnects?

doom369 commented 8 years ago

Yes. On Socket close state is erased.

doom369 commented 8 years ago

@vshymanskyy Look like we need to extend basic example with "bridge init" on reconnect. WDYT?

vshymanskyy commented 8 years ago

I think it's better to remember the configuration.

doom369 commented 8 years ago

This means infinite session that is not good.

vshymanskyy commented 8 years ago

I can easily move Bridge init to BLYNK_CONNECTED() {} Anyway it was just a shortcoming for token setup in UI, so it should be stable (like dashboard modification)

doom369 commented 8 years ago

You are right. But I don't want to store additional data until I migrate to DB to have less problems. So let's go with BLYNK_CONNECTED for now.