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.
raise alert to
Raise an alert on a remote device.
devices.raiseAlertTo(MesAlertEvent.Vibrate)
Parameters
- event - an event identifier
Examples
To tell the connected device to display toast
devices.raiseAlertTo(MesAlertEvent.DisplayToast)
To tell the connected device to vibrate
devices.raiseAlertTo(MesAlertEvent.Vibrate)
To tell the connected device to play a sound
devices.raiseAlertTo(MesAlertEvent.PlaySound)
To tell the connected device to play a ringtone
devices.raiseAlertTo(MesAlertEvent.PlayRingtone)
To tell the connected device to find my phone
devices.raiseAlertTo(MesAlertEvent.FindMyPhone)
To tell the connected device to ring alarm
devices.raiseAlertTo(MesAlertEvent.RingAlarm)
See also
tell remote control to, tell camera to
devices