The format field determines how a single value contained in the Characteristic Value is formatted.
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:
Your requested sheet index: -1 is out of bounds. The actual number of sheets is 0.
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.