Hello,
I am having issues with the BLYNK_APP_CONNECTED and DISCONNECTED events.
I know in legacy it used to be a setting to be enabled called “NOTIFY DEVICES WHEN APP CONNECTED” under project settings.
But my company is transitioning to Blynk 2.0, and I am trying to get this event to be invoked with the new app.
How do I enable this event callback with Blynk 2.0?
Please it’s kind of urgent, I need an answer A.S.A.P…
Any alternative?
That explains why I can’t get that to work.
Anyway, my application need to update a gauge for displaying current reading in Amperes from the hardware to the app, I don’t want to spam every second if no user are connected.
How do I know if any user is connected with the app with the new API?
Efficiency for customers with busy WiFi, or low bandwidth connections, or metered connections.
I mean, if nobody is looking at the app, why updating the value?
It’s a waist of data.
In the old API I could use the pooling feature “READING RATE” on the app widgets, I saw this is not longer an option.
Is that any widget that can sent a periodical request, so I can update the gauge widgets only when the app needs the data?
Let’s keep this specific issue here. @Dominick_Nicolosi I want to return this feature. However, after the look into a code I found that’s it may be not that easy as I expected. The main problem is that now we have web + apps. So we either need to add WebConnected/Disconnected event as well or we have to extend the AppConnected event to support both web + app.
I think the right solution is to extend the AppConnected with web + app events. As the main use case here is to show the data only when the users opens the app. WDYT?
I understand,
If it’s not too hard, a timer widget that triggers a “BLYNK_READ(VPIN_ID)” periodically would do this trick.
I could insert this widget (no ui needed, this could be a behind the scene thing) that I can assign a stream, and a pulling intervals. That I can do all the updates from the BLYNK_READ callback for that virtual stream.