You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using your fantastic framework to write a custom application with your framework as the frontend.
I'm streaming serial data into the ESP and saving it using _state.myVariable
I then display this on the webpage using the websocket end point. What I'd like is continuous refresh when the variables are updated with new values from the serial stream. If I use the callUpdateHandlers function periodically, then the websocket page refreshes but the functionality to submit changes to variables using the rest fails. I suspect this is because of the multiple threads running and accessing the same memory at the same time. Do you perhaps have any suggestions on how I could send data to the websocket directly from my application?
Useful information: My application and your framework are running as two separate RTOS tasks.
The text was updated successfully, but these errors were encountered:
If you are updating _state.myVariable directly (assuming _state is on your StatefulService instance) you will be bypassing the observer pattern and the propagation events won't trigger, which may explain your issue getting WS events to your client.
Hi there,
I'm using your fantastic framework to write a custom application with your framework as the frontend.
I'm streaming serial data into the ESP and saving it using _state.myVariable
I then display this on the webpage using the websocket end point. What I'd like is continuous refresh when the variables are updated with new values from the serial stream. If I use the callUpdateHandlers function periodically, then the websocket page refreshes but the functionality to submit changes to variables using the rest fails. I suspect this is because of the multiple threads running and accessing the same memory at the same time. Do you perhaps have any suggestions on how I could send data to the websocket directly from my application?
Useful information: My application and your framework are running as two separate RTOS tasks.
The text was updated successfully, but these errors were encountered: