Eventually, the button just gives up entirely, the exception can't be caught...
Uncaught Error: Got BLE error code 12292
at line 37 col 10
});
^
in function called from system
New interpreter error: FIFO_FULL
WARNING: jsble_exec_pending: Unknown enum type 46
WARNING: jsble_exec_pending: Unknown enum type 46
WARNING: jsble_exec_pending: Unknown enum type 46
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.
So, I've been doing more testing. I've upped the delay to in my setTimeout() to 500 - still getting errors.
Most of them are caught, so it doesn't brick the button:
Per this error code, I've found this other post: https://devzone.nordicsemi.com/f/nordic-q-a/6222/stability-in-the-uart-communication-over-ble
Eventually, the button just gives up entirely, the exception can't be caught...