Best practice for asynchronous serial communication
Topic last updated
12 Jan 2018, by
Paul Florence.
0 replies
Hello,
I am currently struggling with some runtime errors (one of which is a deep_sleep_lock_underflow) and I think I am doing something wrong when reading asynchronously from a Serial object.
Are you supposed to register only a single Callback ? I have different method on my object and some of them will call read with different callbacks (one for reading the status, one for the position for example). Is it good practice or am I supposed to only register one single callback per Serial object ?
Please log in to post a reply.
Hello,
I am currently struggling with some runtime errors (one of which is a deep_sleep_lock_underflow) and I think I am doing something wrong when reading asynchronously from a Serial object.
Are you supposed to register only a single Callback ? I have different method on my object and some of them will call read with different callbacks (one for reading the status, one for the position for example). Is it good practice or am I supposed to only register one single callback per Serial object ?