Best practice for asynchronous serial communication

12 Jan 2018

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 ?