Uartevent (#393)

* support for uart data event

* updated shims
This commit is contained in:
Peli de Halleux
2017-04-28 01:05:04 -07:00
committed by GitHub
parent f820c20af8
commit 9af989c13c
7 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,21 @@
# Bluetooth On UART Data Received
Registers an event to be fired when one of the delimiter is matched.
```sig
bluetooth.onUartDataReceived(",", () => {})
```
### Parameters
* `delimiters` is a [string](/types/string) containing any of the character to match
### Example
Read values separated by `,`:
```blocks
bluetooth.onUartDataReceived(serial.delimiters(Delimiters.Comma), () => {
basic.showString(serial.readUntil(serial.delimiters(Delimiters.Comma)))
})
```