![](/media/cache/profiles/b5c4ec91390a6fbccf8d918d443563ed.jpg.50x50_q85.jpg)
Edit
Dependencies: Lis2dh12 aconno_I2C aconno_nrf52_uart adc52832_common aconno_SEGGER_RTT
aconno_ble/aconno_ble.h@3:f2078081a779, 2018-01-16 (annotated)
- Committer:
- jurica238814
- Date:
- Tue Jan 16 17:24:31 2018 +0000
- Revision:
- 3:f2078081a779
- Child:
- 9:a9c5db477f35
Ble beacon feature added.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jurica238814 | 3:f2078081a779 | 1 | /* |
jurica238814 | 3:f2078081a779 | 2 | * Made by Jurica Resetar @ aconno |
jurica238814 | 3:f2078081a779 | 3 | * More info @ aconno.de |
jurica238814 | 3:f2078081a779 | 4 | * jurica_resetar@yahoo.com |
jurica238814 | 3:f2078081a779 | 5 | */ |
jurica238814 | 3:f2078081a779 | 6 | |
jurica238814 | 3:f2078081a779 | 7 | |
jurica238814 | 3:f2078081a779 | 8 | #include "mbed.h" |
jurica238814 | 3:f2078081a779 | 9 | #include "ble/BLE.h" |
jurica238814 | 3:f2078081a779 | 10 | #include "GapAdvertisingData.h" |
jurica238814 | 3:f2078081a779 | 11 | |
jurica238814 | 3:f2078081a779 | 12 | #define MSD_SIZE_b (1) |
jurica238814 | 3:f2078081a779 | 13 | #define ADV_INTERVAL_MS (100) |
jurica238814 | 3:f2078081a779 | 14 | |
jurica238814 | 3:f2078081a779 | 15 | /* Global variables and constants */ |
jurica238814 | 3:f2078081a779 | 16 | const char DEVICE_NAME[] = "aconno beacon"; |
jurica238814 | 3:f2078081a779 | 17 | const char MSD[MSD_SIZE_b] = {0x00}; |
jurica238814 | 3:f2078081a779 | 18 | |
jurica238814 | 3:f2078081a779 | 19 | /* Function declarations */ |
jurica238814 | 3:f2078081a779 | 20 | void bleInitComplete(BLE::InitializationCompleteCallbackContext *params); |