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.
TransferService.h@5:90b73268e270, 2014-12-09 (annotated)
- Committer:
- rgrover1
- Date:
- Tue Dec 09 09:05:43 2014 +0000
- Revision:
- 5:90b73268e270
- Parent:
- 4:29ae814ca55e
fix build issues; and update underlying libraries.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rgrover1 | 0:4eaf82806f06 | 1 | #ifndef _H_TRANSFERSERVICE_H |
rgrover1 | 0:4eaf82806f06 | 2 | #define _H_TRANSFERSERVICE_H |
rgrover1 | 0:4eaf82806f06 | 3 | |
rgrover1 | 0:4eaf82806f06 | 4 | #include "BLEDevice.h" |
rgrover1 | 3:d58f3a5bd66c | 5 | #include "GattCharacteristicWriteCBParams.h" |
rgrover1 | 0:4eaf82806f06 | 6 | |
rgrover1 | 0:4eaf82806f06 | 7 | namespace Transfer { |
rgrover1 | 0:4eaf82806f06 | 8 | void init(BLEDevice &ble); |
rgrover1 | 0:4eaf82806f06 | 9 | void reset(); |
rgrover1 | 4:29ae814ca55e | 10 | void handleDataWritten(const GattCharacteristicWriteCBParams *params); |
rgrover1 | 0:4eaf82806f06 | 11 | const uint8_t* getServiceUUIDp(); |
rgrover1 | 0:4eaf82806f06 | 12 | } |
rgrover1 | 0:4eaf82806f06 | 13 | |
rgrover1 | 0:4eaf82806f06 | 14 | #endif //_H_TRANSFERSERVICE_H |