Indoor positioning. Peripheral unit.
Dependencies: aconno_SEGGER_RTT
Diff: aconno_ble/aconno_ble.h
- Revision:
- 0:ad937152493a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/aconno_ble/aconno_ble.h Tue Mar 06 09:53:36 2018 +0000 @@ -0,0 +1,27 @@ +/* +* Made by Jurica Resetar @ aconno +* More info @ aconno.de +* jurica_resetar@yahoo.com +*/ + +#ifndef ACONNO_BLE_H +#define ACONNO_BLE_H + +#include "mbed.h" +#include "ble/BLE.h" +#include "GapAdvertisingData.h" + +#define MSD_SIZE_b (10) +#define ADV_INTERVAL_MS (100) +#define ADVERTISING_DURATION_S (1) +#define BLE_SLEEP_DURATION_S (1) + + +/* Global variables and constants */ +const char DEVICE_NAME[] = "aconno beacon"; +const char MSD[MSD_SIZE_b] = {0x59, 0x00, 0x9C, 0x23, 0x9D, 0x82, 0x1B, 0xD4, 0x11, 0xE8}; + +/* Function declarations */ +void bleInitComplete(BLE::InitializationCompleteCallbackContext *params); + +#endif //ACONNO_BLE_H \ No newline at end of file