Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: TB6612FNG mbed BLE_nRF8001
Diff: main.cpp
- Revision:
- 2:5398a0de0780
- Parent:
- 1:4e2578e8c73c
- Child:
- 3:a7f0b4b78648
--- a/main.cpp Mon Nov 10 01:24:56 2014 +0000
+++ b/main.cpp Mon Nov 10 01:46:55 2014 +0000
@@ -28,11 +28,12 @@
BLEProperty read = BLERead;
BLEProperty write = BLEWrite;
+BLEProperty notify = BLENotify;
BLEPeripheral blePeripheral = BLEPeripheral(&req,&rdy,&rst);
BLEService service = BLEService("5794ba16-ce64-46e5-9804-6851f7b3a183");
BLECharacteristic netDropChrc = BLECharacteristic("fbb3136a-fe49-445b-a612-2019d1b33a6c",read | write,1,1);
-BLECharacteristic netDisarmedChrc = BLECharacteristic("f80fb006-0e8e-412c-8a92-19fe85328daa",read | write,1,1);
+BLECharacteristic netDisarmedChrc = BLECharacteristic("f80fb006-0e8e-412c-8a92-19fe85328daa",read | write | notify,1,1);
int main(){
serial.printf("starting something\r\n");