Here we can all chat about fixing the AT+ command structure and the associated responses.

User avatar
By Arun Prasad
#32604 Dear ..

I have the following issue
I am using ai-thinker-0.9.5 firmware and the issue is





The documentation on this command set is very poor, not only this others also, there needs to be explained do's & dont's with the command and the reason and remedy for errors

User avatar
By Rodrigonh
#52148 Despite "\0" being the escape sequence for CIPSENDEX accordingly the manual, the ESP firmware handles "\" as escape character, regardless what's coming next, what I think is problematic because a data stream should be capable of sending anything in the usual 0 - 255 range. At the same time I understand that determining what could be a escape sequence, that deals right with CIPSENDEX buffer boundaries is not something easy to find a solution.
Maybe a good idea would be creating an additional AT command that triggers CIPSENDEX escape by pulling/signaling LOW/HIGH one of the ESP GPIO's ? Sounds like a nice option to simplify some things while interfacing with ESP externally.

Anyway, the fix for this behaviour could be: Everytime my data to be sent contains a "\" I send two additional "\". As for most compilers "\" is also a escape character then In the source code it ends like sending "\\" and "\\" again for each "\" to be transmitted.