vshymanskyy / blynk-library-python

Blynk library for Python. Works with Python 2, Python 3, MicroPython.
https://blynk.io/
MIT License
281 stars 97 forks source link

Simultaneous VIRTUAL_READ and VIRTUAL_WRITE? #21

Closed chrissv closed 5 years ago

chrissv commented 5 years ago

I am using the library installed by pip on my Raspberry Pi Model 3 B+. Here is the version information:

Name: blynk-library-python
Version: 0.1.3
Summary: Blynk library
Home-page: http://www.blynk.cc
Author: Volodymyr Shymanskyy
Author-email: vshymanskyi@gmail.com
License: MIT
Location: /usr/local/lib/python2.7/dist-packages
Requires:

Looking at the library code, it appears that when VIRTUAL_READ is used on a virtual pin, it sets the write callback to None. Similarly, when using VIRTUAL_WRITE it sets the read callback to None.

I have a need of both a read and write callback on the same virtual pin. Is there a way to achieve this?

vshymanskyy commented 5 years ago

With the 0.2.0 update, this should work as expected

chrissv commented 5 years ago

Wonderful! What is the timeframe you anticipate for the 0.2.0 update?

vshymanskyy commented 5 years ago

v0.2.0 is released and available via pip: https://github.com/vshymanskyy/blynk-library-python/releases/latest