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-11-05
Revision:
4:29ae814ca55e
Parent:
3:d58f3a5bd66c

File content as of revision 4:29ae814ca55e:

#ifndef _H_TRANSFERSERVICE_H
#define _H_TRANSFERSERVICE_H

#include "BLEDevice.h"
#include "GattCharacteristicWriteCBParams.h"

namespace Transfer {
    void init(BLEDevice &ble);
    void reset();
    void handleDataWritten(const GattCharacteristicWriteCBParams *params);
    const uint8_t* getServiceUUIDp();
}

#endif //_H_TRANSFERSERVICE_H