745 B
745 B
On Signal Strength Changed
Register code to run when the signal strength of the paired device changes.
~hint
App required You must use one of the micro:bit apps to use this functionality.
~
devices.onSignalStrengthChanged(() => {})
Parameters
body
: code to run when the signal strength changes.
Examples
Display the signal strength on screen:
devices.onSignalStrengthChanged(() => {
basic.showNumber(devices.signalStrength())
})
See Also
tell remote control to, raise alert to, signal strength
devices