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@3:d58f3a5bd66c, 2014-09-02 (annotated)
- Committer:
- rgrover1
- Date:
- Tue Sep 02 16:30:18 2014 +0000
- Revision:
- 3:d58f3a5bd66c
- Parent:
- 0:4eaf82806f06
- Child:
- 4:29ae814ca55e
updating 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 | 3:d58f3a5bd66c | 10 | void handleDataWritten(uint16_t handle, 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 |