Lizzy project
Dependencies: aconno_I2C Lis2dh12 adc52832_common aconno_SEGGER_RTT
aconno_ble/aconno_ble.h
- Committer:
- jurica238814
- Date:
- 2018-09-13
- Branch:
- SimpleGATTExample
- Revision:
- 22:7dae8496b97c
- Parent:
- 19:2681edc2f2b9
File content as of revision 22:7dae8496b97c:
/* * 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" #include "lizzy_service.h" #define MSD_SIZE_b (10) #define ADV_INTERVAL_MS (1000) #define APPLICATION_ID (0x9A780059) //(0xCF170059) /* Global variables and constants */ struct __attribute__((packed, aligned(1))) advertising_packet{ uint32_t header; uint8_t type; }; extern LizzyService *lizzy_service; /* Function declarations */ void bleInitComplete(BLE::InitializationCompleteCallbackContext *params); void updatePayload(BLE *ble, advertising_packet *advertisementPacket); #endif //ACONNO_BLE_H