Application running on nRF51822 PCA10001

Dependencies:   BLE_API MMA8652 nRF51822 mbed-src

Committer:
rosterloh84
Date:
Tue Oct 14 13:04:06 2014 +0000
Revision:
6:2fb6cf3c9047
Parent:
3:596283411a00
Updates before refactoring BuddiService

Who changed what in which revision?

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