undusted BT docs
This commit is contained in:
@ -3,13 +3,13 @@
|
||||
Returns the signal strength reported by the paired device from ``0`` (no signal) to ``4`` (full strength).
|
||||
|
||||
### ~hint
|
||||

|
||||
|
||||
The functions in the ``devices`` namespace allow the @boardname@ to communicate with a separate (remote) device,
|
||||
such as a smartphone, over Bluetooth (Smart).
|
||||
The set of supported events will depend on the remote device and the @boardname@ apps available for the remote device.
|
||||
For another device like a smartphone to use any of the Bluetooth "services" which the @boardname@ has, it must first be [paired with the @boardname@](/reference/bluetooth/bluetooth-pairing). Once paired, the other device may connect to the @boardname@ and exchange data relating to many of the @boardname@'s features.
|
||||
|
||||
### ~
|
||||
|
||||
|
||||
```sig
|
||||
devices.signalStrength();
|
||||
```
|
||||
@ -24,7 +24,7 @@ Display the signal strength on screen:
|
||||
|
||||
```blocks
|
||||
devices.onSignalStrengthChanged(() => {
|
||||
basic.showNumber(devices.signalStrength(), 150)
|
||||
basic.showNumber(devices.signalStrength())
|
||||
})
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user