Datasheet

succeed since these are all valid values for this command.
Execute Mode
'Execute' mode will cause the specific command to 'run', if possible, and will be used when the command name is entered with no additional
parameters.
AT+FACTORYRESET
You might use execute mode to perform a factory reset, for example, by executing the AT+FACTORYRESET command as follows:
AT+FACTORYRESET
OK\r\n
NOTE: Many commands that are means to be read will perform the same action whether they are sent to the command parser in 'execute' or
'read' mode. For example, the following commands will produce identical results:
AT+BLEGETPOWERLEVEL
-4\r\n
OK\r\n
AT+BLEGETPOWERLEVEL?
-4\r\n
OK\r\n
If the command doesn't support execute mode, the response will normally be 'ERROR' on a new line.
Read Command Mode '?'
'Read' mode is used to read the current value of a command.
Not every command supports read mode, but you generally use this to retrieve information like the current transmit power level for the radio by
appending a '?' to the command, as shown below:
AT+BLEPOWERLEVEL?
If the command doesn't support read mode or if there was a problem with the request, you will normally get an 'ERROR' response.
If the command read was successful, you will normally get the read results followed by 'OK' on a new line, as shown below:
AT+BLEPOWERLEVEL?
-4\r\n
OK\r\n
Note: For simple commands, 'Read' mode and 'Execute' mode behave identically.
Dynamically Switching Modes via +++
When operating in Command Mode you can dynamically switch to Data Mode (and back again) in software via the +++
command (http://adafru.it/iCN). See the full command description for details.
© Adafruit Industries
https://learn.adafruit.com/introducing-the-adafruit-bluefruit-le-uart-
friend
Page 61 of 115