Lightly modified version of the BLE stack, that doesn't bring up a DFUService by default... as we have our own.
Fork of BLE_API by
Diff: services/URIBeacon2Service.h
- Revision:
- 155:a3fafce0bc0b
- Parent:
- 154:ab86251a3ffb
- Child:
- 156:cc021c5ba5b8
--- a/services/URIBeacon2Service.h Fri Nov 28 14:11:20 2014 +0000 +++ b/services/URIBeacon2Service.h Fri Nov 28 14:11:20 2014 +0000 @@ -101,7 +101,7 @@ const size_t NUM_SUFFIXES = sizeof(suffixes) / sizeof(char *); size_t encodedBytes = 0; - while (sizeofURLData && (payloadIndex < MAX_SIZEOF_PAYLOAD)) { + while (sizeofURLData && (payloadIndex < MAX_SIZEOF_SERVICE_DATA_PAYLOAD)) { /* check for suffix match */ unsigned i; for (i = 0; i < NUM_SUFFIXES; i++) { @@ -131,13 +131,13 @@ } private: - static const size_t MAX_SIZEOF_PAYLOAD = 32; /* TODO */ + static const size_t MAX_SIZEOF_SERVICE_DATA_PAYLOAD = 32; /* TODO */ private: BLEDevice &ble; size_t payloadIndex; - uint8_t serviceDataPayload[MAX_SIZEOF_PAYLOAD]; + uint8_t serviceDataPayload[MAX_SIZEOF_SERVICE_DATA_PAYLOAD]; }; #endif /* #ifndef __BLE_URI_BEACON_2_SERVICE_H__*/ \ No newline at end of file