EasyManua.ls Logo

RF-Star nRF52832 - Master Connection; Disconnect

RF-Star nRF52832
59 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
nRF52832
www.szrfstar.com V1.3 - Sep., 2020
Shenzhen RF-star Technology Co., Ltd. Page 29 of 58
Master Connection
AT+CONNECT=
Function
Connect to the specified device according to the serial number or MAC address returned by
"AT+SCAN" command.
Example 1
AT+CONNECT=1
Return Value
OK
43:D5:CF:24:60:94 CONNECTED
Remark
Connect to the device with the serial number of 1 in the list returned by "AT+SCAN" command.
Example 2
AT+CONNECT=,F1:F2:F3:F4:F5:F6
Return Value
OK
F1:F2:F3:F4:F5:F6 CONNECTED
Remark
Connect the device with the specified MAC address. Parameter 1 cannot be omitted, only need to
fill in the MAC address to be connected.
Disconnect
AT+DISCONNECT=?
Function
Query parameter range of this command.
Example
AT+DISCONNECT=?
Return Value
AT+DISCONNECT=<0,1,2>,<0-x>
OK
Remark
This command has two parameters:
Parameter 1:
0: Disconnect slave devices.
1: Disconnect master device.
2: Disconnect master and slave devices.
Parameter 2: Disconnect the current slave devices which are connect to the master device. Query
device handle by AT+CNT_LIST.
AT+DISCONNECT
Function
Disconnect all the current connected device.
Example
AT+DISCONNECT
Return Value
OK
F1:F2:F3:F4:F5:F6 DISCONNECTED

Table of Contents