Indoor positioning. Central unit.

Dependencies:   aconno_SEGGER_RTT

Committer:
dbartolovic
Date:
Wed Mar 07 11:43:39 2018 +0000
Revision:
2:1b85a28b1e68
Parent:
0:07a75b2fae14
Central module now sends messages as soon as it receives them.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jurica238814 0:07a75b2fae14 1 /*
jurica238814 0:07a75b2fae14 2 *
jurica238814 0:07a75b2fae14 3 *
jurica238814 0:07a75b2fae14 4 */
jurica238814 0:07a75b2fae14 5
jurica238814 0:07a75b2fae14 6 #ifndef TASKS_H
jurica238814 0:07a75b2fae14 7 #define TASKS_H
jurica238814 0:07a75b2fae14 8
jurica238814 0:07a75b2fae14 9 #include "mbed.h"
jurica238814 0:07a75b2fae14 10 #include "aconno_ble.h"
jurica238814 0:07a75b2fae14 11 #include "ble/BLE.h"
jurica238814 0:07a75b2fae14 12 #include "GapAdvertisingData.h"
jurica238814 0:07a75b2fae14 13 #include "ble/DiscoveredCharacteristic.h"
jurica238814 0:07a75b2fae14 14 #include "ble/DiscoveredService.h"
jurica238814 0:07a75b2fae14 15
jurica238814 0:07a75b2fae14 16 #define DEBUG_LED (1)
jurica238814 0:07a75b2fae14 17 #define PERIODIC_CALLBACK_S (1)
jurica238814 0:07a75b2fae14 18 #define PRINT_ON_RTT (1)
jurica238814 0:07a75b2fae14 19
dbartolovic 2:1b85a28b1e68 20 #define UPDATE_DATA_SIG (0x00001020)
dbartolovic 2:1b85a28b1e68 21
jurica238814 0:07a75b2fae14 22 #if PRINT_ON_RTT
jurica238814 0:07a75b2fae14 23 #include "SEGGER_RTT.h"
jurica238814 0:07a75b2fae14 24 #define printf(...) SEGGER_RTT_printf(0, __VA_ARGS__)
jurica238814 0:07a75b2fae14 25 #else
jurica238814 0:07a75b2fae14 26 #define printf(...)
jurica238814 0:07a75b2fae14 27 #endif
jurica238814 0:07a75b2fae14 28
dbartolovic 2:1b85a28b1e68 29 void bleUpdateData(BLE *ble);
jurica238814 0:07a75b2fae14 30 void bleStartAdvertising(BLE *ble);
jurica238814 0:07a75b2fae14 31 void bleStartScanning(BLE *ble);
jurica238814 0:07a75b2fae14 32 void periodicCallback(BLE *ble);
jurica238814 0:07a75b2fae14 33
jurica238814 0:07a75b2fae14 34 #endif // TASKS_H