Data Sheet

XY-MBA32A Bluetooth
Module
Data
sheet
www.newbitsiot.com
18
Remarks
Scan nearby Bluetooth devices, and the returned data starts with +SCAN: <CR><LF> and ends with
+SCAN END <CR><LF>; repeat multiple device information in the middle: <mac> <type> <rssi> [name]
<CR><LF>, scan device information including: MAC address, address type, RSSI value, broadcast name.
(Some devices do not have a broadcast name, so the scanned information may only have the MAC
address, address type, and RSSI value).
Return: +SCAN: <CR><LF>, indicating THAT THE SCAN code is turned ON.
Return: 001B10F4DA0B 1-35 NBEE<CR><LF>, the device information obtained is the MAC address is
00:1B:10:F4:DA:0B, the ADDRESS type is 1, THE RSSI is -35dbm, and the device name is NBEE.
Return: +SCAN END<CR><LF>, INDICATING THAT THE SCAN code has BEEN STOPPED.
Connect to the device with the specified MAC address
Command Description: Connect to the device with the specified MAC address
Read/Write: Write only
Command: AT+CONN=<MAC><CR><LF>
Supported parameters: 000000000000-FFFFFFFFFFFF
Setup/Response:
Query the connected device currently
Command Description: Query the connected device currently
Read/Write: Read only
Command: AT+DEV?<CR><LF>
Supported parameters: NA
NAME><CR><LF>
+SCAN END<CR><LF>
R/W
Command
Format
Response
Remarks
W
AT+CONN=<
MAC><CR>
<LF>
+CONNECTED:0,
<MAC><CR><LF>
Successfully connected to <MAC> target
device
+CONNECT
TIMEOUT<CR><LF>
Connection timeout
ERROR<CR><LF>
The MAC address format is incorrect and
the connection failed