raise alert to

Raise an alert on a remote device.

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

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