FrankLaterza/SerialWizard

Lazy serial data polling

Closed this issue · 3 comments

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.

frontend information is now updated by the backend

Hi Frank, do you mind pointing me to the changes you made in order to call a JS/TS function from the Rust backend?

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!