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
- Committer:
- rgrover1
- Date:
- 2014-09-02
- Revision:
- 3:d58f3a5bd66c
- Parent:
- 0:4eaf82806f06
- Child:
- 4:29ae814ca55e
File content as of revision 3:d58f3a5bd66c:
#ifndef _H_TRANSFERSERVICE_H #define _H_TRANSFERSERVICE_H #include "BLEDevice.h" #include "GattCharacteristicWriteCBParams.h" namespace Transfer { void init(BLEDevice &ble); void reset(); void handleDataWritten(uint16_t handle, const GattCharacteristicWriteCBParams *params); const uint8_t* getServiceUUIDp(); } #endif //_H_TRANSFERSERVICE_H