How do I store the following into a char array:
AT+CIPSTART="TCP","103.6.157.239","8085"
When I do the following :
char L []="AT+CIPSTART="TCP","103.6.157.239","8085"";
I get an error :
../GPRS.c:48: error: expected ',' or ';' before 'TCP'
How do I store the following into a char array:
AT+CIPSTART="TCP","103.6.157.239","8085"
When I do the following :
char L []="AT+CIPSTART="TCP","103.6.157.239","8085"";
I get an error :
../GPRS.c:48: error: expected ',' or ';' before 'TCP'
 
    
     
    
    Try this
 char c[]="AT+CIPSTART=\"TCP\",\"103.6.157.239\",\"8085\"";
Micro controller escape sequences :
 
    
    In java you can escape quotes with 'backslash' \. Like for storing "TCP" in string you can use
String x= " \"TCP\" ";
Similarly you can use this concept for storing string values in array.
More on this topic, you can refer here.
