![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
работает в паре с micro:bit мигалкой
Dependencies: mbed BLE_API nRF51822
Программа для управляющего устройства на nRF51822. Используется одна Button1 для включения\выключения светодиода на устройстве приемнике.
Diff: main.cpp
- Revision:
- 2:3e1e967035cb
- Parent:
- 1:1db45b17552e
- Child:
- 3:146eba831693
--- a/main.cpp Mon Jun 08 06:26:18 2015 +0000 +++ b/main.cpp Mon Jun 08 06:30:35 2015 +0000 @@ -117,8 +117,11 @@ triggerLedCharacteristic = false; ledCharacteristic.read(); /* We could have issued this read just as easily from * characteristicDiscoveryCallback(); but - * this demonstrates the use of - * isServiceDiscoveryActive(). */ + * invoking it here demonstrates the use + * of isServiceDiscoveryActive() and also + * the fact that it is permitted to + * operate on application-local copies of + * DiscoveredCharacteristic. */ } ble.waitForEvent(); }