pxt-calliope/docs/reference/devices/signal-strength.md

780 B

Signal Strength

Returns the signal strength reported by the paired device from 0 (no signal) to 4 (full strength).

~hint

App required You must use one of the micro:bit apps to use this functionality.

~

devices.signalStrength();

Returns

  • the signal strength from 0 (no signal) to 4 (full strength).

Examples

Display the signal strength on screen:

devices.onSignalStrengthChanged(() => {
    basic.showNumber(devices.signalStrength())
})

See Also

tell remote control to, raise alert to, on signal strength changed

devices