Download a stream of data to a peripheral over BLE.
Dependencies: BLE_API mbed nRF51822
A simple demonstration of downloading a stream onto a peripheral over BLE. There's a corresponding Python script to driver the client.
Diff: main.cpp
- Revision:
- 5:90b73268e270
- Parent:
- 4:29ae814ca55e
--- a/main.cpp Wed Nov 05 14:35:52 2014 +0000 +++ b/main.cpp Tue Dec 09 09:05:43 2014 +0000 @@ -37,7 +37,7 @@ DEBUG("Advertising...\r\n"); } -void onConnectionCallback(Gap::Handle_t handle, const Gap::ConnectionParams_t *params) +void onConnectionCallback(Gap::Handle_t handle, Gap::addr_type_t peerAddrType, const Gap::address_t peerAddr, const Gap::ConnectionParams_t *params) { DEBUG("____[ Connected ]______________________________________\r\n"); DEBUG("Conn. params => min=%d, max=%d, slave=%d, supervision=%d\r\n",