Lazy serial data polling
Closed this issue · 3 comments
FrankLaterza commented
Currently, the serial buffer is being serviced every 25ms. This solution can be made more robust by switching to an async serial data interrupt that updates the front end. Essentially the backend will tell the frontend to update when it has new data.
FrankLaterza commented
frontend information is now updated by the backend
bastian2001 commented
Hi Frank, do you mind pointing me to the changes you made in order to call a JS/TS function from the Rust backend?
FrankLaterza commented
Of course! I opened a discussion in the tauri repo that might help here. All you need to do is get the app handle and emit a event call to js. Lmk if you have anymore questions!