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
Even the library contains the virtualWrite(conn, ...) API, it is not possible to push easly data to Blynk server in a Timer callback.
You suggested me this workaround:
load('api_gpio.js'); load('api_blynk.js'); load('api_timer.js'); let bConn; // Blynk connection, to be initialized by the setHandler Blynk.setHandler(function(conn, cmd, pin, val, id) { bConn = conn; }, null); Timer.set(1000, 1, function() { if (!bConn) return; // not yet initialized Blynk.send(....); }, null);
However I have a question: Are you sure the blynk handler callback is invoked even if no "vr" or "vw" commands are triggered from the Blynk app?
If not, the APP should send a "fake" "vr" commnad in order to get the bConn variable initialized. This is not a big deal.
bConn
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Even the library contains the virtualWrite(conn, ...) API, it is not possible to push easly data to Blynk server in a Timer callback.
You suggested me this workaround:
However I have a question:
Are you sure the blynk handler callback is invoked even if no "vr" or "vw" commands are triggered from the Blynk app?
If not, the APP should send a "fake" "vr" commnad in order to get the
bConn
variable initialized. This is not a big deal.The text was updated successfully, but these errors were encountered: