I am working with HM-10 copy CC4A-1 module. I connected it with Arduino Uno R3 after struggling a lot it got connected. I performed some AT Commands using Arduino Serial Monitor suddenly it stops working after executing AT+RENEW command. I also tried to perform AT+BAUD command but it returned error before executing AT+RENEW.
#include <SoftwareSerial.h>
SoftwareSerial BTSerial(2, 3); //RX|TX
void setup(){
Serial.begin(9600);
BTSerial.begin(9600); // default baud rate
while(!Serial); //if it is an Arduino Micro
Serial.println("AT commands: ");
}
void loop(){
//read from the HM-10 and print in the Serial
if(BTSerial.available())
Serial.write(BTSerial.read());
//read from the Serial and print to the HM-10
if(Serial.available())
BTSerial.write(Serial.read());
}