Indoor positioning. Central unit.
Dependencies: aconno_SEGGER_RTT
Diff: source/main.cpp
- Revision:
- 0:07a75b2fae14
- Child:
- 1:2bdc506d8baa
diff -r 000000000000 -r 07a75b2fae14 source/main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/source/main.cpp Tue Mar 06 09:52:46 2018 +0000 @@ -0,0 +1,33 @@ +/* + * + * + */ + +#include "main.h" + +int main() +{ + printf("Main program started.\r\n"); + + BLE &ble = BLE::Instance(); + ble.init(bleInitComplete); + printf("BLE initialised.\r\n"); + + #if DEBUG_LED + // Turn the leds off + advLed = 1; + scanLed = 1; + periodicLed = 1; + #endif + + //tBleStartAdvertising.start(callback(bleStartAdvertising, &ble)); + tBleStartScanning.start(callback(bleStartScanning, &ble)); + tPeriodicCallback.start(callback(periodicCallback, &ble)); + + while(true) + { + // Do nothing + + } +} +