preparing support for eddystone
This commit is contained in:
@ -29,19 +29,21 @@ control.inBackground(() => {
|
||||
});
|
||||
```
|
||||
|
||||
## Bluetooth
|
||||
|
||||
## bluetooth and Eddystone
|
||||
|
||||
```namespaces
|
||||
devices.tellCameraTo(MesCameraEvent.TakePhoto);
|
||||
bluetooth.onBluetoothConnected(() => {});
|
||||
eddystone.advertiseUrl("https://pxt.io", 6);
|
||||
```
|
||||
|
||||
```package
|
||||
radio
|
||||
devices
|
||||
bluetooth
|
||||
eddystone
|
||||
```
|
||||
|
||||
### See Also
|
||||
|
||||
[basic](/reference/basic), [input](/reference/input), [music](/reference/music), [led](/reference/led), [Math (blocks)](/blocks/math), [String](/reference/types/string), [game](/reference/game), [images](/reference/images), [pins](/reference/pins), [serial](/reference/serial), [control](/reference/control), [radio](/reference/radio), [devices](/reference/devices), [bluetooth](/reference/bluetooth)
|
||||
[basic](/reference/basic), [input](/reference/input), [music](/reference/music), [led](/reference/led), [Math (blocks)](/blocks/math), [String](/reference/types/string), [game](/reference/game), [images](/reference/images), [pins](/reference/pins), [serial](/reference/serial), [control](/reference/control), [radio](/reference/radio), [devices](/reference/devices), [bluetooth](/reference/bluetooth), [eddystone](/reference/eddystone)
|
||||
|
28
docs/reference/eddystone.md
Normal file
28
docs/reference/eddystone.md
Normal file
@ -0,0 +1,28 @@
|
||||
# Eddystone
|
||||
|
||||
Support for Eddystone beacons.
|
||||
|
||||
```cards
|
||||
eddystone.advertiseUrl("https://pxt.io/", 6);
|
||||
eddystone.stopAdvertising();
|
||||
```
|
||||
|
||||
### Advanced
|
||||
|
||||
Bluetooth beacons are used to indicate proximity to a place or object of interest.
|
||||
Beacons use Bluetooth advertising to broadcast a small amount of data, which can be received and acted upon by anyone in range
|
||||
with a suitable device and software, typically a smartphone and application.
|
||||
|
||||
There are various beacon message formats, which define the way Bluetooth advertising packets are used as containers for beacon data.
|
||||
iBeacon is Apple's beacon message format. Eddystone comes from Google.
|
||||
|
||||
More information at https://lancaster-university.github.io/microbit-docs/ble/eddystone/
|
||||
|
||||
### See Also
|
||||
|
||||
[eddystone.advertiseUrl](/reference/eddystone/advertise-url),
|
||||
[eddystone.stopAdvertising](/reference/eddystone/stop-advertising),
|
||||
|
||||
```package
|
||||
eddystone
|
||||
```
|
Reference in New Issue
Block a user