I am trying to implement a rpc service that sends data to an uart and then wait for the response but I have no idea how to “wait” without blocking the event loop.
Here is a basic example of what I am looking for: https://gist.github.com/schmurfy/7f6fc20b192ec13af20ca9477b2e8f23
I tried mgos_msleep
but it does not work, I am not sure where to look for the answer, any help would be greatly appreciated