Signal Strength

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

For another device like a smartphone to use any of the Bluetooth “services” which the micro:bit has, it must first be paired with the micro:bit. Once paired, the other device may connect to the micro:bit and exchange data relating to many of the micro:bit’s features.

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