Test code. Blinks by default at 2 seconds. Receives single characters from PC (sensor) and transmit to "nRF Connect" on droid. Droid can send ascii to Nano. When droid sends "A", blinking is twice per second. "B" returns to slow.
Dependencies: BLE_API mbed nRF51822
Fork of IofT_comm by
Diff: main.cpp
- Revision:
- 3:b3f6c612b603
- Parent:
- 2:4b66b69c7ecb
- Child:
- 4:378d43fa5d20
--- a/main.cpp Mon Jul 27 06:52:44 2015 +0000 +++ b/main.cpp Thu Jan 07 02:46:54 2016 +0000 @@ -63,7 +63,7 @@ -void disconnectionCallback(Gap::Handle_t handle, Gap::DisconnectionReason_t reason) +void disconnectionCallback(const Gap::DisconnectionCallbackParams_t *params) { pc.printf("Disconnected \r\n"); pc.printf("Restart advertising \r\n");