add Magnetic service, add default period for sensor services
This commit is contained in:
1 parent
74c91a8215
commit
0333b2adc2
13 files changed
+129
-10
No files matched your search
@@ -36,8 +36,8 @@
|
||||
* - Measurement Period 0001 | int32_t | Read + Write |
|
||||
* ms between measurements, -1: stop reading, 0: update when changes
|
||||
*
|
||||
* Accelerometer service 0400
|
||||
* - Accel 0401 | float[3] | Read + Notify | x, y, z
|
||||
* Gyroscope service 0400
|
||||
* - Gyro 0401 | float[3] | Read + Notify | x, y, z
|
||||
* - Measurement Period 0001
|
||||
*/
|
||||
|
||||
@@ -68,7 +68,7 @@ err_t BLEAdafruitGyro::begin (void)
|
||||
_measurement.setFixedLen(4*3); // float[3]
|
||||
|
||||
// Invoke base class begin(), this will add Service, Measurement and Period characteristics
|
||||
VERIFY_STATUS( BLEAdafruitSensor::begin(1000) );
|
||||
VERIFY_STATUS( BLEAdafruitSensor::begin(DEFAULT_PERIOD) );
|
||||
|
||||
return ERROR_NONE;
|
||||
}
|
||||
Reference in new issue
Block a user