On Signal Strength Changed

Register code to run when the signal strength of the paired device changes.

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.onNotified(MesDeviceInfo.IncomingCall, () => {})

Parameters

  • body: code to run when the signal strength changes.

Examples

Display the signal strength on screen:

devices.onNotified(MesDeviceInfo.IncomingCall, () => {
    basic.showString("RING RING")
})

See Also

tell remote control to, raise alert to, signal strength

devices