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.
Diff: Configuration.h
- Revision:
- 0:4eaf82806f06
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Configuration.h Mon Aug 18 16:03:22 2014 +0000 @@ -0,0 +1,26 @@ +#ifndef _H_CONFIGURATION_H +#define _H_CONFIGURATION_H + +/* + * Configuration.h + * Prashant Vaibhav, TobyRich GmbH + * + * This file defines default configuration parameters like device name, connection parameters etc. + */ + +namespace Config +{ +const uint8_t deviceName[] = "Transfer PRO"; + +const int advertisingInterval = 160; // (0.625 ms units) + +// default connection parameters conforming to Apple recommendations +const int minConnectionInterval = 16; // (1.25 ms units) +const int maxConnectionInterval = 40; // (1.25 ms units) +const int slaveLatency = 0; +const int supervisionTimeout = 500; // (10 ms units) + +const int blockSize = 16; // in bytes +} + +#endif //_H_CONFIGURATION_H