Skip to content
New issue

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

the function default_blynk_handler is wrong in the example!!! #5

Open
cavamora opened this issue Jul 14, 2018 · 0 comments
Open

the function default_blynk_handler is wrong in the example!!! #5

cavamora opened this issue Jul 14, 2018 · 0 comments

Comments

@cavamora
Copy link

default_blynk_handler is using blynk_virtual_write with the parameters in the wrong order. I lost a few hours to realize that. please fix the example !

wrong:
blynk_virtual_write(c, id, s_read_virtual_pin, (float) mgos_get_free_heap_size() / 1024);

fixed:
blynk_virtual_write(c, s_read_virtual_pin, (float) mgos_get_free_heap_size() / 1024 , id);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant