An example program to test data transfer throughput. Exhibits long latency (2 sec) between hardware callbacks on write event.
Dependencies: BLE_API mbed nRF51822
Diff: Configuration.h
- Revision:
- 0:ab775bf55fe4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Configuration.h Thu Aug 14 14:13:53 2014 +0000 @@ -0,0 +1,28 @@ +#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 \ No newline at end of file