You do seem to be setting:
rxCharacteristic = c; busy = false;
Which would allow it to try and connect again, even before it had disconnected.
Could that be your issue?
@Gordon started
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.
You do seem to be setting:
Which would allow it to try and connect again, even before it had disconnected.
Could that be your issue?