Indoor positioning. Peripheral unit.
Dependencies: aconno_SEGGER_RTT
aconno_ble/aconno_ble.h@0:ad937152493a, 2018-03-06 (annotated)
- Committer:
- jurica238814
- Date:
- Tue Mar 06 09:53:36 2018 +0000
- Revision:
- 0:ad937152493a
Publish commit.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jurica238814 | 0:ad937152493a | 1 | /* |
jurica238814 | 0:ad937152493a | 2 | * Made by Jurica Resetar @ aconno |
jurica238814 | 0:ad937152493a | 3 | * More info @ aconno.de |
jurica238814 | 0:ad937152493a | 4 | * jurica_resetar@yahoo.com |
jurica238814 | 0:ad937152493a | 5 | */ |
jurica238814 | 0:ad937152493a | 6 | |
jurica238814 | 0:ad937152493a | 7 | #ifndef ACONNO_BLE_H |
jurica238814 | 0:ad937152493a | 8 | #define ACONNO_BLE_H |
jurica238814 | 0:ad937152493a | 9 | |
jurica238814 | 0:ad937152493a | 10 | #include "mbed.h" |
jurica238814 | 0:ad937152493a | 11 | #include "ble/BLE.h" |
jurica238814 | 0:ad937152493a | 12 | #include "GapAdvertisingData.h" |
jurica238814 | 0:ad937152493a | 13 | |
jurica238814 | 0:ad937152493a | 14 | #define MSD_SIZE_b (10) |
jurica238814 | 0:ad937152493a | 15 | #define ADV_INTERVAL_MS (100) |
jurica238814 | 0:ad937152493a | 16 | #define ADVERTISING_DURATION_S (1) |
jurica238814 | 0:ad937152493a | 17 | #define BLE_SLEEP_DURATION_S (1) |
jurica238814 | 0:ad937152493a | 18 | |
jurica238814 | 0:ad937152493a | 19 | |
jurica238814 | 0:ad937152493a | 20 | /* Global variables and constants */ |
jurica238814 | 0:ad937152493a | 21 | const char DEVICE_NAME[] = "aconno beacon"; |
jurica238814 | 0:ad937152493a | 22 | const char MSD[MSD_SIZE_b] = {0x59, 0x00, 0x9C, 0x23, 0x9D, 0x82, 0x1B, 0xD4, 0x11, 0xE8}; |
jurica238814 | 0:ad937152493a | 23 | |
jurica238814 | 0:ad937152493a | 24 | /* Function declarations */ |
jurica238814 | 0:ad937152493a | 25 | void bleInitComplete(BLE::InitializationCompleteCallbackContext *params); |
jurica238814 | 0:ad937152493a | 26 | |
jurica238814 | 0:ad937152493a | 27 | #endif //ACONNO_BLE_H |