Datasheet
AT
Commands
The Bluefruit LE modules use a Hayes AT-style command set (https://adafru.it/ebJ)to configure the device.
The advantage of an AT style command set is that it's easy to use in machine to machine communication, while still
being somewhat user friendly for humans.
Test Command Mode '=?'
'Test' mode is used to check whether or not the specified command exists on the system or not.
Certain firmware versions or configurations may or may not include a specific command, and you can determine if the
command is present by taking the command name and appending '=?' to it, as shown below
AT+BLESTARTADV=?
If the command is present, the device will reply with 'OK'. If the command is not present, the device will reply
with 'ERROR'.
AT+BLESTARTADV=?
OK\r\n
AT+MISSINGCMD=?
ERROR\r\n
Write Command Mode '=xxx'
'Write' mode is used to assign specific value(s) to the command, such as changing the radio's transmit power level
using the command we used above.
To write a value to the command, simple append an '=' sign to the command followed by any paramater(s) you wish to
write (other than a lone '?' character which will be interpretted as tet mode):
AT+BLEPOWERLEVEL=-8
If the write was successful, you will generally get an 'OK' response on a new line, as shown below:
AT+BLEPOWERLEVEL=-8
OK\r\n
If there was a problem with the command (such as an invalid parameter) you will get an 'ERROR' response on a new
line, as shown below:
AT+BLEPOWERLEVEL=3
ERROR\r\n
Note: This particular error was generated because '3' is not a valid value for the AT+BLEPOWERLEVEL command.
© Adafruit Industries https://learn.adafruit.com/adafruit-feather-32u4-bluefruit-le Page 89 of 211










