EDIT: I retested with 52832/SDK12 and I see it too. It mostly does not happen when maxchars is 20 so I did not notice before but when I set it to 50 I see something very similar
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 have commented out all the ignored error codes to let it throw exception and I rewrote the loop to retry
and now it works well, I get everything sent and the error is 0x13 = NRF_ERROR_RESOURCES
the output to console looks like
I wonder what is the reason for ignoring errors when trying to send notifications? Isn't it better to throw exception so it can be handled. I'd remove all those ignored errors starting here https://github.com/espruino/Espruino/blob/master/libs/bluetooth/jswrap_bluetooth.c#L1606
EDIT: I retested with 52832/SDK12 and I see it too. It mostly does not happen when maxchars is 20 so I did not notice before but when I set it to 50 I see something very similar