vshymanskyy / blynk-library-python

Blynk library for Python. Works with Python 2, Python 3, MicroPython.

Home Page:https://blynk.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simultaneous VIRTUAL_READ and VIRTUAL_WRITE?

chrissv opened this issue · comments

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?

With the 0.2.0 update, this should work as expected

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