diff --git a/docs/reference/bluetooth/uart-read.md b/docs/reference/bluetooth/uart-read.md index 18c7d68c..374507c7 100755 --- a/docs/reference/bluetooth/uart-read.md +++ b/docs/reference/bluetooth/uart-read.md @@ -18,10 +18,9 @@ bluetooth.uartRead(""); ### Example: Starting the Bluetooth UART service and then reading data received from another device which is terminated by ":" character and then displaying it ```blocks -let uart_data: string = ""; +let uart_data = ""; let connected = 0; basic.showString("UART"); -bluetooth.startUartService(); bluetooth.onBluetoothConnected(() => { basic.showString("C"); connected = 1; diff --git a/docs/reference/bluetooth/uart-write.md b/docs/reference/bluetooth/uart-write.md index 34568c9f..58c3d676 100755 --- a/docs/reference/bluetooth/uart-write.md +++ b/docs/reference/bluetooth/uart-write.md @@ -27,7 +27,6 @@ bluetooth.onBluetoothDisconnected(() => { basic.showString("D"); connected = 0; }); -bluetooth.startUartService(); input.onButtonPressed(Button.A, () => { if (connected == 1) { bluetooth.uartWrite("HELLO");