We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have an issue that the function 'VIRTUAL_WRITE' was not found and VIRTUAL_READ is broken for micropython
Here is the code
import BlynkLib import connecttowifi connecttowifi.connect() AUTH_TOKEN = "*" # Initialize Blynk blynk = BlynkLib.Blynk(AUTH_TOKEN) @blynk.VIRTUAL_WRITE(3) def v3_write_handler(value): # execute the command echo it back blynk.virtual_write(3, 'Command: ' + value + '\n') blynk.virtual_write(3, 'Result: ') try: blynk.virtual_write(3, str(eval(value))) except: try: exec(value) except Exception as e: blynk.virtual_write(3, 'Exception:\n ' + repr(e)) finally: blynk.virtual_write(3, '\n') while True: blynk.run()
The text was updated successfully, but these errors were encountered:
Maybe you're using the wrong library? Which version are you using? (https://github.com/vshymanskyy/blynk-library-python/tree/master)
Sorry, something went wrong.
I am using the latest version
try using this example https://github.com/vshymanskyy/blynk-library-python/blob/master/examples/02_on_virtual_change.py#L33
No branches or pull requests
I have an issue that the function 'VIRTUAL_WRITE' was not found and VIRTUAL_READ is broken for micropython
Here is the code
The text was updated successfully, but these errors were encountered: