The command is working fine if I type it directly to the serial interface
AT+CIPSTART="TCP","192.168.1.5",1647
But if I want to make it automatic and send it whenever I want from inside the code is not working at all.
Used this but it's not working (Serial1 is from the hardware sp)
Serial1.println("AT+CIPSTART="TCP","192.168.1.5",1647")
Any way to arrange the data?
asked May 14, 2016 at 0:20
1 Answer 1
You need to escape your quotes:
Serial1.println("AT+CIPSTART=\"TCP\",\"192.168.1.5\",1647");
answered May 14, 2016 at 0:30
-
Man that was fast! Thanks Majenko it worked perfectly!DarkXDroid– DarkXDroid2016年05月14日 00:37:11 +00:00Commented May 14, 2016 at 0:37