Data Sheet
XY-MBA32A Bluetooth
Module
Data
sheet
www.newbitsiot.com
15
Set the device name
Command Description: Set the device name, which will take effect immediately.
Read/Write:: Write only
Command: AT+NAME=<string><CR><LF>
Supported parameters: User-defined, the total length does not exceed 20 bytes.
Setup/Response:
Query the device name
Command Description: Query the device name
Read/Write: Read only
Command: AT+NAME? <CR><LF>
Supported parameters: NA
Setup/Response:
Set the broadcasting status
Command Description: Set the Bluetooth broadcast status of the device, which will take effect
immediately, and resume broadcasting after reset and restart.
Read/Write: Write only
Command: AT+ADV=<num><CR><LF>
Supported parameters: 0-Turn off broadcasting 1-Turn on broadcasting
Setup/Response:
R/W
Command Format
Response
Remarks
W
AT+NAME=<string><CR><LF>
OK<CR><LF>
Setup successfully
ERROR<CR><LF>
Setup failure
R/W
Command
Format
Response
Remarks
R
AT+NAME?
<CR><LF>
+NAME:
<string><CR><LF
>
<string> is the current BLE device name