2016-06-21 20:17:34 +02:00
|
|
|
# Devices
|
|
|
|
|
2016-11-01 18:42:42 +01:00
|
|
|
Control a phone with the @boardname@ via Bluetooth.
|
2016-06-21 20:17:34 +02:00
|
|
|
|
2018-02-21 07:00:28 +01:00
|
|
|
## ~ hint
|
|
|
|
|
|
|
|
**App required** You must use one of the [micro:bit apps](https://microbit.org/guide/mobile/) to use this functionality.
|
|
|
|
|
|
|
|
## ~
|
|
|
|
|
2016-06-21 20:17:34 +02:00
|
|
|
```cards
|
|
|
|
devices.tellCameraTo(MesCameraEvent.TakePhoto);
|
|
|
|
devices.tellRemoteControlTo(MesRemoteControlEvent.play);
|
|
|
|
devices.raiseAlertTo(MesAlertEvent.DisplayToast);
|
|
|
|
devices.onNotified(MesDeviceInfo.IncomingCall, () => {
|
|
|
|
|
|
|
|
});
|
|
|
|
devices.onGamepadButton(MesDpadButtonInfo.ADown, () => {
|
|
|
|
|
|
|
|
});
|
|
|
|
devices.signalStrength();
|
|
|
|
devices.onSignalStrengthChanged(() => {
|
|
|
|
|
|
|
|
});
|
|
|
|
```
|
2016-08-08 22:08:15 +02:00
|
|
|
|
|
|
|
```package
|
2016-10-23 06:29:31 +02:00
|
|
|
devices
|
2016-08-08 22:08:15 +02:00
|
|
|
```
|
|
|
|
|
2017-09-07 22:42:08 +02:00
|
|
|
## See Also
|
2016-08-08 22:08:15 +02:00
|
|
|
|
|
|
|
[tellCameraTo](/reference/devices/tell-camera-to), [tellRemoteControlTo](/reference/devices/tell-remote-control-to), [raiseAlertTo](/reference/devices/raise-alert-to), [onNotified](/reference/devices/on-notified), [onGamepadButton](/reference/devices/on-gamepad-button), [signalStrength](/reference/devices/signal-strength), [onSignalStrengthChanged](/reference/devices/on-signal-strength-changed)
|