5.2.2 Get Connection Status (GK)
Format: GK
To obtain the current connection status of the RNBD451 module, use the “Get Connection Status” command,
“GK
”.
This command does not require any input parameters. Depending on the module's current
connection status, the command provides different outputs:
- If the RNBD451 module is not currently connected to any device, the output will be “none”.
- If the RNBD451 module is connected to a
device, the "GK" command returns the following connection information:
- <Peer BT Address>,<Address Type>,<Connection
Type>, where
<Peer BT Address>
– Is the 6-byte hex address of the peer device<Address Type>
– Is either0
for public address or1
for random address<Connection Type>
– Specifies if the connection enables the UART transparent feature, where1
indicates UART transparent is enabled and0
indicates UART transparent is disabled.
- <Peer BT Address>,<Address Type>,<Connection
Type>, where
Example: | GK
|
// Get current connection status |
Response: | None | // If not connected |
<Peer BT Address>,<Address Type>,<Connection
Type> |
// If connected |