fixing uarl docs
This commit is contained in:
parent
7cc93507d9
commit
545f715eeb
@ -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;
|
||||
|
@ -27,7 +27,6 @@ bluetooth.onBluetoothDisconnected(() => {
|
||||
basic.showString("D");
|
||||
connected = 0;
|
||||
});
|
||||
bluetooth.startUartService();
|
||||
input.onButtonPressed(Button.A, () => {
|
||||
if (connected == 1) {
|
||||
bluetooth.uartWrite("HELLO");
|
||||
|
Loading…
Reference in New Issue
Block a user