If you do one command while waiting for the result of another it should throw an error, but you can definitely get into a position where you asked it to do something (like connect) and it's said OK so Espruino thinks it's not busy, and waits until CONNECT (or similar) is sent. Between OK and CONNECT it's possible you could do something else, and in that case it could fail.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Ahh - yes, maybe the driver should be more aware.
If you do one command while waiting for the result of another it should throw an error, but you can definitely get into a position where you asked it to do something (like connect) and it's said
OK
so Espruino thinks it's not busy, and waits untilCONNECT
(or similar) is sent. BetweenOK
andCONNECT
it's possible you could do something else, and in that case it could fail.