5.4.4.4 Discovery Remote Services (CI[,<hex16>])
Format: CI[,<hex16>]
Use command CI
to start GATT service discovery from the GATT client.
The RNBD451 module starts as a GATT server by default. If the user also prefers the RNBD451 module to act as a GATT client, the command CI
must be issued first.
Command CI
performs the essential service discovery process with the remote GATT server and acquires supported public and private services and characteristics on the remote GATT server. The RNBD451 module supports up to six client public services and four client private services. Each client service is able to define up to eight characteristics. A connection with the remote GATT server must be established before using the command CI. The command has an option parameter that is a connection handle to indicate a specific link for multiple links.
Command CI
retrieves critical client information from the remote GATT server; therefore, it is a prerequisite over any Client Service related commands, such as LC
, CHR
and CHW
.
Example: | CI | // Start client role on RNBD451 |
Response: | AOK | // Success |
Err | // Not connected |