Chat freely about anything...

User avatar
By Kobi
#29524 Hi,

1. I'm writing in C language and I encountered a problem with the AT+CWJAP command.
I want to send this command through uart to the ESP8266 module :
SendString("AT+CWJAP="SSID","PSW"\r\n");
The problem is that because all the apostrophes, the compiler stops regarding the phrase after the first = as a string. What can I do to handle this ?

2. I want to give the ESP a fixed IP. With what command can I do that ?

3. I want to download the bin file of the latest firmware that available in order to flash it. Can someone give me a link to that ?

thanks a lot!
User avatar
By martinayotte
#29527 1) to send double quote in a string, you need to escape those characters. it would be :
"AT+CWJAP=\"SSID\",\"PSW\"\r\n"
Also, beware that ESP need to be in STA or STA+AP mode (using AT+CWMODE=1 or 3) before you can joint any AP, otherwise if it stays in AP mode, the AT firmware will give your "ERROR"
2) Simply use AT+CIPSTA="192.168.6.100","192.168.6.1","255.255.255.0" where parameters are IP, GW, MASK (the 2 last one are optional)
3) There a copy usually inside the SDK Zip file. Download from http://bbs.espressif.com/viewtopic.php?f=46&t=1124
But since I'm not using AT firmware at all, I can tell you if they are working fine.
User avatar
By Kobi
#29555 Thank you very much for the fast reply

1. I succedded !

2. I am writing this command to the module :
SendString("AT+CIPSTA=\"192.168.6.111\"\r\n");
tried also :
SendString("AT+CIPSTA=192.168.6.111\r\n");
or
SendString("AT+CIPSTA_DEF=\"192.168.6.111\"\r\n");
but it gives me an error.
why is that ? maybe my firmware version (0018000902) is too old for this AT command and I need to update it ?

3. I download the Zip file and there is a folder name "Bin". I entered this folder and I see :
blank.bin
boot_v1.2.bin
boot_v1.2.bin
esp_init_data_default.bin
which one shoud I need to burn into the flash ?
4. another question : Sometimes I get "Busy p..." as a reply. why's that ? what should I need to do in order to solve it ?