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.
Revision 5:90b73268e270, committed 2014-12-09
- Comitter:
- rgrover1
- Date:
- Tue Dec 09 09:05:43 2014 +0000
- Parent:
- 4:29ae814ca55e
- Commit message:
- fix build issues; and update underlying libraries.
Changed in this revision
--- a/BLE_API.lib Wed Nov 05 14:35:52 2014 +0000 +++ b/BLE_API.lib Tue Dec 09 09:05:43 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#fede41ce9407 +http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#0e9201b67e2f
--- a/TransferService.cpp Wed Nov 05 14:35:52 2014 +0000 +++ b/TransferService.cpp Tue Dec 09 09:05:43 2014 +0000 @@ -1,3 +1,5 @@ +#include "mbed.h" + #include "TransferService.h" #include "Logger.h" #include "Configuration.h"
--- 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",
--- a/mbed-src.lib Wed Nov 05 14:35:52 2014 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/mbed_official/code/mbed-src/#643a59b3dbac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Dec 09 09:05:43 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5 \ No newline at end of file
--- a/nRF51822.lib Wed Nov 05 14:35:52 2014 +0000 +++ b/nRF51822.lib Tue Dec 09 09:05:43 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#61da91a52bd6 +http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#cdcc094ab166