blynkkk / lib-python

Blynk IoT library for Python and Micropython
MIT License
237 stars 83 forks source link

APP_CONNECTED and APP_DISCONNECTED events? #25

Closed arkhipenko closed 4 years ago

arkhipenko commented 4 years ago

Hi, Are you planning to add support for APP_CONNECTED and APP_DISCONNECTED events?

http://docs.blynk.cc/#blynk-firmware-blynktimer-blynk_app_connected http://docs.blynk.cc/#blynk-firmware-blynktimer-blynk_app_disconnected

I don't see this currently as part of the events inventory.

antohaUa commented 4 years ago

Hi Anatoli, If you need this functionality - will try to add it soon. Hope it is supported by blynk protocol. Will notify you about results within this thread.

arkhipenko commented 4 years ago

Thanks! It should be supported since their Arduino and RPi c++ libraries have those events.

antohaUa commented 4 years ago

Anatoli, yeap, events where handled by internal protocol messages. cPython and MPython libs where changed by me a little bit to support them. Please update your libs code to latest from github and use example https://github.com/blynkkk/lib-python/blob/master/examples/12_app_connect_disconnect.py as base.

arkhipenko commented 4 years ago

Thank you! I will test shortly.

On Jan 26, 2020 5:12 AM, antohaUa notifications@github.com wrote:

Anatoli, yeap, events where handled by internal protocol messages. cPython and MPython libs where changed by me a little bit to support them. Please update your libs code to latest from github and use example https://github.com/blynkkk/lib-python/blob/master/examples/12_app_connect_disconnect.py as base.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/blynkkk/lib-python/issues/25?email_source=notifications&email_token=AACMMTLQ3OYWAXATDAOWPMDQ7VOYPA5CNFSM4KK3PF5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ5QKIQ#issuecomment-578487586, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AACMMTMCEWD5QWITIOUTEW3Q7VOYPANCNFSM4KK3PF5A.

arkhipenko commented 4 years ago

Tested - the events fire as expected. Thank you for such a quick turnaround!