RN4870/71 Bluetooth
®
Low Energy Module User’s Guide
DS50002466A-page 32 2016 Microchip Technology Inc.
If the bonded connection is lost due to any reason, reconnection does not automatically
provide secured link. To secure the connection, another B command must be issued.
However, this command is only for securing link other than saving connection informa-
tion.
2.6.14
C
This command makes RN4870/71 try to connect to the last bonded device. When this
command is used to reconnect to a bonded device, the RN4870/71 automatically
secures the link once the connection is established.
2.6.15
C,<0,1>,<address>
This command initiates connection to a remote BLE address where <address> is spec-
ified in hex format. The first parameter indicates the address type: 0 for public address
and 1 for private random address. When this command is used to connect to an already
bonded device, the link is not automatically secured. Instead, the user must use com-
mand B to secure the link after the connection is established.
Default: Not bonded
Example: B // Bond with connected peer device
Response: AOK
%SECURED%
%BONDED%
ERR
%ERR_SEC%
// Success
// Status string
// Status string
// Not connected yet
// Failed in security
Default: None
Example: C // Connect to last bonded device, if such
// device uses public address
Response: Trying
%CONNECT%
%SECURED%
ERR
// Start connecting
// Status string
// Status string
// No bonded device
Example: C,0,00A053112233 // Connect to the BLE address 00A053112233
Response: Trying
%CONNECT%
ERR
%ERR_CONN%
// Start connecting
// Status string
// Syntax error or invalid parameter
// Status string