fixing uarl docs

This commit is contained in:
Peli de Halleux 2016-06-24 11:03:39 -07:00
parent 7cc93507d9
commit 545f715eeb
2 changed files with 1 additions and 3 deletions

View File

@ -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;

View File

@ -27,7 +27,6 @@ bluetooth.onBluetoothDisconnected(() => {
basic.showString("D");
connected = 0;
});
bluetooth.startUartService();
input.onButtonPressed(Button.A, () => {
if (connected == 1) {
bluetooth.uartWrite("HELLO");