The format field determines how a single value contained in the Characteristic Value is formatted.
The information contained on this page is referenced in Bluetooth® Core Specification Volume 3, Part G, Section 184.108.40.206.2.
If a format is not a whole number of octets, then the data shall be contained within the least significant bits of the value, and all other bits shall be set to zero on transmission and ignored upon receipt. If the Characteristic Value is less than an octet, it occupies an entire octet. The following format values are defined:
Characteristic Format Types
Additional Formatting Notes
- When encoding an IPv4 address, the uint32 Format type shall be used.
- When encoding an IPv6 address, the uint128 Format type shall be used.
- When encoding a Bluetooth BD_ADDR, the uint48 Format type shall be used.
- A duint16 is two uint16 values concatenated together.