Hello everyone.
I'm going to share my unfortunate experience with this module. It's very annoying and the commands can be different from what you see out there. But in my case, this list worked on the HC-06( HC-05_ATCommandSet.pdf).
What wasn't working for me was setting the parameters, such as NAME and PSWD...
Then I ‘discovered’ in my module that the sending order of \n and \r mattered.
My code looks like this all the time:
int32_t AT_CMD(const char *s){
int len = 0;
len = sprint(strBuffer,"%s\n\r",s);
...
}
After much searching, I haven't solved the problem.
I'd like to point out that all the requests work this way (AT+ RESET, NAME, UART, PSWD...).
But if I sent AT+NAME:HC000, it returned ERROR:(0)
So I decided to change the order from \n\r to \r\n and it worked.
int32_t AT_CMD(const char *s){
int len = 0;
len = sprint(strBuffer,"%s\r\n",s);
...
}