Escaped strings in response

tilz0R
Posts: 38
Joined: Sat Dec 26, 2015 8:36 pm
Contact:

Escaped strings in response

Postby tilz0R » Sat Dec 26, 2015 8:52 pm

Hello community,

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: Select all

//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?

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Escaped strings in response

Postby ESP_Faye » Mon Dec 28, 2015 3:43 pm

Hi,

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 !

tilz0R
Posts: 38
Joined: Sat Dec 26, 2015 8:36 pm
Contact:

Re: Escaped strings in response

Postby tilz0R » Wed Jan 13, 2016 2:57 pm

Hello,

What is the status with this bug resolving?
When we can expect new AT release with this fixed?

Have a nice day.

Who is online

Users browsing this forum: No registered users and 189 guests