I’ve been playing around with the Lua library on OpenWRT, and it works quite well. However, I’d really like to use the BLYNK_APP_CONNECTED() event, which it seems it doesn’t support.
What would it take to add support for this event to the Lua library? It’s not apparent to me how events are handled. Could someone point me where I need to get started? Or, is this already present, and I’m simply missing it?
Hi @marshaul, can I ask what your use case is for this?
I find that the BLYNK_APP_CONNECTED functionality that exist is in other libraries is one of the least useful features, and see that when most people use this functionality it’s usually because they don’t understand what this feature actually does.
I’d be interested to learn what use you’ve found for this functionality.
In terms of a solution, it is possible to get this data via an API call, so maybe that would work for you?
Pete.
I need the server to update the menus of the app with strings scraped from the client. I’d rather do this on demand, when it needs to occur (which is when the app connects). These strings may change so they can’t be hardcoded, but they don’t need to be polled constantly. Updating the app GUI on connect seems like the ideal balance between functionality and cost and strikes me as the correct solution.
1 Like
Does that strike you as a sufficiently appropriate use? Or am I missing something, such as how that event functions or some alternate way of achieving what I need?
It’s the most convincing use I’ve come across yet.
Pete.