HM-10 Bluetooth AT command from Arduino Uno

HM-10 is in AT mode by default and remains that way until it receives a non-AT command. I guess

is exactly that, and does exactly what you expect it to do.