lancaster-university / codal-microbit-v2

CODAL target for the micro:bit v2.x series of devices
MIT License
43 stars 52 forks source link

In the MICROBIT_UART_S_EVT_DELIM_MATCH event, if the RX size is more than 20 bytes, no event is fired. #336

Open hacktronics opened 1 year ago

hacktronics commented 1 year ago

In the MICROBIT_UART_S_EVT_DELIM_MATCH event, if the RX size is more than 20 bytes, no event is fired. Even though in the constructor, the size is set as 64 bytes buffer

    uBit.messageBus.listen(MICROBIT_ID_BLE_UART, MICROBIT_UART_S_EVT_DELIM_MATCH, onDelim);
    uart = new MicroBitUARTService(*uBit.ble, 64, 32);
    uart->eventOn(ManagedString((const char)10));

The onDelim is only called, when the user sends less than 20bytes.