diff --git a/libs/microbit-bluetooth/bluetooth.cpp b/libs/microbit-bluetooth/bluetooth.cpp index 81585e9d..3d668351 100644 --- a/libs/microbit-bluetooth/bluetooth.cpp +++ b/libs/microbit-bluetooth/bluetooth.cpp @@ -84,8 +84,8 @@ namespace bluetooth { /** * Starts the Bluetooth UART service */ - // help=bluetooth/start-uart-service - // blockId=bluetooth_start_uart_service block="bluetooth uart service" blockGap=8 + //% help=bluetooth/start-uart-service + //% blockId=bluetooth_start_uart_service block="bluetooth uart service" blockGap=8 void startUartService() { if (uart) return; // 61 octet buffer size is 3 x (MTU - 3) + 1 diff --git a/libs/microbit-bluetooth/shims.d.ts b/libs/microbit-bluetooth/shims.d.ts index 0606d684..2cbc3c0c 100644 --- a/libs/microbit-bluetooth/shims.d.ts +++ b/libs/microbit-bluetooth/shims.d.ts @@ -49,6 +49,13 @@ declare namespace bluetooth { //% blockId=bluetooth_start_button_service block="bluetooth button service" blockGap=8 shim=bluetooth::startButtonService function startButtonService(): void; + /** + * Starts the Bluetooth UART service + */ + //% help=bluetooth/start-uart-service + //% blockId=bluetooth_start_uart_service block="bluetooth uart service" blockGap=8 shim=bluetooth::startUartService + function startUartService(): void; + /** * Writes to the Bluetooth UART service buffer. From there the data is transmitted over Bluetooth to a connected device. */