User guide

Silicon Labs Page of 15 21
There are two ways to specify the length (in bytes) of a characteristic.
One way is to use the attribute inside the element.
length="..." <value>
Alternatively you can simply include the data inside the element, which for example must be
<value>
done with constant data. Using this will override the length defined with
length="".
Example:
<characteristic uuid="2a00">
<properties read="true" const="true" />
<value>Device name</value>
</characteristic>
When you specify , bgbuild compiler will interpret the data inside as hexadecimal, which
type="hex"
affects the interpreted length.
Example:
<value type="hex">0001</value>
is two bytes
<value type="utf-8">0001</value>
is four bytes.