ESP8266 Developer Zone The Official ESP8266 Forum 2016-01-13T14:57:19+08:00 https://bbs.espressif.com:443/feed.php?f=16&t=1553 2016-01-13T14:57:19+08:00 2016-01-13T14:57:19+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1553&p=5360#p5360 <![CDATA[Re: Escaped strings in response]]>
What is the status with this bug resolving?
When we can expect new AT release with this fixed?

Have a nice day.

Statistics: Posted by tilz0R — Wed Jan 13, 2016 2:57 pm


]]>
2015-12-28T15:43:54+08:00 2015-12-28T15:43:54+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1553&p=5167#p5167 <![CDATA[Re: Escaped strings in response]]>
Sorry that we do not deal with the special characters by default.

But you could add an AT command yourself to handle with it by calling wifi_softap_get_config or wifi_softap_get_config_default.

How to add user-define AT commands http://bbs.espressif.com/viewtopic.php?f=61&t=837.

Thanks for your interest in ESP8266 ! We do appreciate your valuable advices !

Statistics: Posted by ESP_Faye — Mon Dec 28, 2015 3:43 pm


]]>
2015-12-26T20:52:59+08:00 2015-12-26T20:52:59+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1553&p=5158#p5158 <![CDATA[Escaped strings in response]]>
in AT commands 1.4 document it says that when we want to use special character ",/\"" we have to put / or \ infront of it.
This is very clear and works for me very great.

I'm building a event-based library with AT commands where user can also select custom AP name, so AT+CWSAP_CUR or _DEF can be used.

I used like this:

Code:

//All lines ends with \r\n

AT+CWSAP="WIFI SPOT WITH END of \"\,","my\"\,password",3,0  //I send this with special characters included since I wanna have "," and \ in my wifi name.
OK                                                            //Respond from device
AT+CWSAP?                                                  //I send this since I wanna see new settings
+CWSAP:"WIFI SPOT WITH END of ",","my",password",1,0,4,0    //This is what I received
OK                                                          //End of command


So, my computer shows new Wi-Fi spot with name: WIFI SPOT WITH END of ", which is exactly what I wanna have.

Then please take a look at received string from ESP device:

+CWSAP:"WIFI SPOT WITH END of ",","my",password",1,0,4,0

So this big blue commas are real separators from ESP documentation, but take a look at one comma before which has exact pattern "," like separator part.

So there is a problem because there is no way I can know if I have like this:
Wifi name: WIFI SPOT WITH END of ",
Password: my",password
or
Wifi name: WIFI SPOT WITH END of
Password: ",my",password

And maybe some more combinations can be here.

So I think this is unsolved bug. The same should be check everywhere.
I suggest you that you return the same string as we sent (with encode characters).

Btw..when we can expect new AT commands version?

Statistics: Posted by tilz0R — Sat Dec 26, 2015 8:52 pm


]]>