Indoor positioning. Central unit.
Dependencies: aconno_SEGGER_RTT
Diff: source/main.cpp
- Revision:
- 2:1b85a28b1e68
- Parent:
- 1:2bdc506d8baa
diff -r 2bdc506d8baa -r 1b85a28b1e68 source/main.cpp --- a/source/main.cpp Tue Mar 06 15:45:34 2018 +0000 +++ b/source/main.cpp Wed Mar 07 11:43:39 2018 +0000 @@ -5,6 +5,18 @@ #include "main.h" + +#if DEBUG_LED + DigitalOut advLed(p22); + DigitalOut scanLed(p23); + DigitalOut periodicLed(p24); +#endif + +Thread tBleUpdateData; +Thread tBleStartAdvertising; +Thread tBleStartScanning; +Thread tPeriodicCallback; + int main() { printf("Main program started.\r\n"); @@ -20,6 +32,7 @@ periodicLed = 1; #endif + tBleUpdateData.start(callback(bleUpdateData, &ble)); tBleStartAdvertising.start(callback(bleStartAdvertising, &ble)); tBleStartScanning.start(callback(bleStartScanning, &ble)); tPeriodicCallback.start(callback(periodicCallback, &ble));