
BLE GATT-service implementation for high quantity sensor data from a MPU6050-accelerator/gyroscope
Dependencies: BLE_API mbed nRF51822 MPU6050_lib
Diff: MPU6050Service.h
- Revision:
- 7:af3e2b9c137a
- Parent:
- 6:c1db7e82d76a
- Child:
- 9:6a28d9c0e486
--- a/MPU6050Service.h Tue Jun 30 23:54:34 2015 +0000 +++ b/MPU6050Service.h Mon Jul 13 15:27:57 2015 +0000 @@ -14,7 +14,7 @@ typedef struct { mpu6050SensorReading_t data; - uint32_t clock_us; // ~ 1h 11min 34s 967ms 296ns + uint32_t clock_us; // ~ 1h 11min 34s 967ms 296us // (so we have to resynchronize our clock approx. every hour) } mpu6050SensorData_t; @@ -73,7 +73,7 @@ GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_WRITE_WITHOUT_RESPONSE // look above again ) { - static bool serviceAdded = false; // MOS is a one-timer + static bool serviceAdded = false; if (serviceAdded) return;