There is some strange behavior of esp module. I use module with already set "ssid" and "password" by command AT+CWJAP="ssid","password". After every restart of the host mcu there is check of all settings and when command AT+CWJAP? is sent, module responds with "No AP". After some delay, the module starts to answer correctly - CWJAP:"ssid".
After examining the code of function "at_queryCmdCwjap (uint8_t id)" I came across the following:
at_queryCmdCwjap(uint8_t id)
{
...
wifi_get_ip_info (0x00, & pTempIp);
if (pTempIp.ip.addr == 0)
{
at_backError;
return;
}
...
It turns out that by asking a question about the name of the preset AP, I gets an answer of not set AP, due to the fact that actually currently module still not received IP address ???
Excuse me, but when I ask You what is the temperature, I did not care if you have forgotten your watch and whether you have cousin.
When the source code of your AT commands was still open I commented this part of the code and skipped the problem but now code is not open any more.
Please remove this part of code or explain me the reason why it have to be like that. Thank You.
Best regards,
Peter