Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_API by
Revision 254:fb2a891a0d98, committed 2014-12-12
- Comitter:
- rgrover1
- Date:
- Fri Dec 12 15:52:48 2014 +0000
- Parent:
- 253:097be53aea02
- Commit message:
- Synchronized with git rev c7d406c2
Author: Rohit Grover
ServiceDataPayload can have a maximum of 18 bytes of URIData.
fixes #6
Changed in this revision
| services/URIBeaconConfigService.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/services/URIBeaconConfigService.h Fri Dec 12 13:32:24 2014 +0000
+++ b/services/URIBeaconConfigService.h Fri Dec 12 15:52:48 2014 +0000
@@ -414,7 +414,9 @@
}
private:
- static const size_t MAX_SIZEOF_SERVICE_DATA_PAYLOAD = 18; /* Uri Data must be between 0 and 18 bytes in length. */
+ static const size_t MAX_SIZEOF_SERVICE_DATA_PAYLOAD = 22; /* Uri Data must be between 0 and 18 bytes in length; and
+ * together with the 4-byte header, the service data must
+ * fit within 22 bytes. */
static const size_t MAX_SIZE_URI_DATA_CHAR_VALUE = 48; /* This is chosen arbitrarily. It should be large enough
* to hold any reasonable uncompressed URI. */
