You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
["data","JsVar","The data to advertise as an object - see below for more info"]
542
550
]
543
551
}
552
+
Change the data that Espruino advertises.
553
+
554
+
Data is of the form `{ UUID : data_as_byte_array }`. The UUID should be a [Bluetooth Service ID](https://developer.bluetooth.org/gatt/services/Pages/ServicesHome.aspx).
544
555
545
-
Data is of the form `{ UUID : data_as_byte_array }`. For example to return battery level at 95%, do:
556
+
For example to return battery level at 95%, do:
546
557
547
558
```
548
559
NRF.setAdvertising({
@@ -555,7 +566,7 @@ Or you could report the current temperature:
0 commit comments