0

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

2

You need to escape your quotes:

Serial1.println("AT+CIPSTART=\"TCP\",\"192.168.1.5\",1647");
answered May 14, 2016 at 0:30
1
  • Man that was fast! Thanks Majenko it worked perfectly! Commented May 14, 2016 at 0:37

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.