BLE Thermometer example
Dependencies: BSP_B-L475E-IOT01
This example is a fork of the following mbed-os example:
https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-ble-Thermometer/
Please read the documentation in this page.
Diff: source/main.cpp
- Revision:
- 1:0802a5f8c9d3
- Parent:
- 0:a27dfda81620
- Child:
- 2:cc8349878a7d
--- a/source/main.cpp Tue Jul 26 14:50:43 2016 +0100 +++ b/source/main.cpp Thu Jul 28 23:10:39 2016 +0100 @@ -28,7 +28,7 @@ static HealthThermometerService *thermometerServicePtr; static EventQueue eventQueue( - /* event count */ 16 * /* event size */ 32 + /* event count */ 16 * /* event size */ 32 ); /* Restart Advertising on disconnection*/ @@ -94,7 +94,7 @@ int main() { - eventQueue.post_every(periodicCallback, 500); + eventQueue.post_every(500, periodicCallback); BLE &ble = BLE::Instance(); ble.onEventsToProcess(scheduleBleEventsProcessing);