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.

Committer:
rgrover1
Date:
Tue Dec 09 09:05:43 2014 +0000
Revision:
5:90b73268e270
Parent:
0:4eaf82806f06
fix build issues; and update underlying libraries.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rgrover1 0:4eaf82806f06 1 #ifndef _H_CONFIGURATION_H
rgrover1 0:4eaf82806f06 2 #define _H_CONFIGURATION_H
rgrover1 0:4eaf82806f06 3
rgrover1 0:4eaf82806f06 4 /*
rgrover1 0:4eaf82806f06 5 * Configuration.h
rgrover1 0:4eaf82806f06 6 * Prashant Vaibhav, TobyRich GmbH
rgrover1 0:4eaf82806f06 7 *
rgrover1 0:4eaf82806f06 8 * This file defines default configuration parameters like device name, connection parameters etc.
rgrover1 0:4eaf82806f06 9 */
rgrover1 0:4eaf82806f06 10
rgrover1 0:4eaf82806f06 11 namespace Config
rgrover1 0:4eaf82806f06 12 {
rgrover1 0:4eaf82806f06 13 const uint8_t deviceName[] = "Transfer PRO";
rgrover1 0:4eaf82806f06 14
rgrover1 0:4eaf82806f06 15 const int advertisingInterval = 160; // (0.625 ms units)
rgrover1 0:4eaf82806f06 16
rgrover1 0:4eaf82806f06 17 // default connection parameters conforming to Apple recommendations
rgrover1 0:4eaf82806f06 18 const int minConnectionInterval = 16; // (1.25 ms units)
rgrover1 0:4eaf82806f06 19 const int maxConnectionInterval = 40; // (1.25 ms units)
rgrover1 0:4eaf82806f06 20 const int slaveLatency = 0;
rgrover1 0:4eaf82806f06 21 const int supervisionTimeout = 500; // (10 ms units)
rgrover1 0:4eaf82806f06 22
rgrover1 0:4eaf82806f06 23 const int blockSize = 16; // in bytes
rgrover1 0:4eaf82806f06 24 }
rgrover1 0:4eaf82806f06 25
rgrover1 0:4eaf82806f06 26 #endif //_H_CONFIGURATION_H