Skip to content

Commit

Permalink
puck doc tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Sep 12, 2017
1 parent 7ee5bd0 commit ce469cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions info/Troubleshooting.md
Expand Up @@ -192,6 +192,7 @@ To enter normal mode, just:
|-------|----|
| Pico/WiFi | Unplug from USB and re-plug, without pressing the button. |
| Espruino Board | Press and release **RST** while **BTN1** is not pressed. |
| Puck.js | Remove and re-insert the battery |

## When I upload code, some characters are being lost

Expand Down
5 changes: 5 additions & 0 deletions puck/Puck.js Web Bluetooth.md
Expand Up @@ -322,6 +322,11 @@ and we could just handle it directly.
That's what you can do with `Puck.connect(callback)`. Once connected it calls the `callback`
function with the connection, which you can then use to send and receive data.

**Note:** You can't use `Puck.connect` and `Puck.write/eval` on the same
connection at the same time. If you want to write to a Puck after having
used `Puck.connect`, you need to use `connection.write` and handle
any response in the `connection.on("data",` handler.

Try the example below:

```HTML_demo_link
Expand Down

0 comments on commit ce469cc

Please sign in to comment.