User guide

Silicon Labs Page of 18 21
3.4 Examples
The example below shows how to implement the service which needs to be included in Generic Access (GAP)
every Smart device.
Bluetooth
GAP Service
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<service uuid="1800">
<description>Generic Access Profile</description>
<characteristic uuid="2a00">
<properties read="true" const="true" />
<value>BT121 Bluetooth Smart Ready Module</value>
</characteristic>
<characteristic uuid="2a01">
<properties read="true" const="true" />
<value>0000</value>
</characteristic>
</service>
</configuration>
GAP service has 16-bit UUID 1800. In this example the service UUID is not included in the advertisement
packet payload.
<description>Generic Access Profile</description>
is simply used as a comment to identify the service
name and type.
The GAP service implements two mandatory GAP service characteristics: (device name) and UUID 2a00
(appearance).UUID 2a01
Both characteristics have property, so they can be read over a connection.read
Bluetooth
Both characteristics are marked , so the values are constant and cannot be changed by the
const
application, but are permanently stored in the flash memory.
The value of the device name characteristic is:
"BT121 Bluetooth Smart Ready Module".
The value of the appearance characteristic is:
"0000"