• it should go to jshUSARTKick with device = EV_BLUETOOTH, is that correct ?

    Yes, and you can kick off Bluetooth transmission from there. However you still need a way to detect when a Bluetooth packet has finished sending so you can send the next one.

    Also, using USARTKick isn't ideal - it'll get called after the very first character. Ideally you want to be able to write multiple characters from the buffer at once.

    nRF52 uses a 'radio notification' event to do that: https://github.com/espruino/Espruino/blo­b/master/targets/nrf5x/bluetooth.c#L744

About

Avatar for Gordon @Gordon started