I have an issue with parsing AT commands which are passed to a declared function 'sendData' when the AT command argument passed includes strings. For example, when setting an Soft Access point, the password and SSID are both strings within the AT command. The function declaration (part) is:
String sendData(String command, const int timeout, boolean debug)
The arguments passed are (for example):
sendData("AT+CWSAP=2,"CG_BRST", "12345678",1,3", 100,1);
Clearly I think there will be issues with the double quotation characters bounding the command argument and indeed this gives rise to an 'ESP' error response which suggests parsing is necessary. Incidentally, I can successfully implement and verify this command using SimpleTermGold and an FTDI cable so can eliminate hardware issues when issuing this and other AT commands.
In anticipation, hope someone can shed light on this problem.
Many thanks.