on-internet
← Community

ESP8266: How to send TCP messages using AT+CIPSEND command

Stack Overflow ·

I am experimenting with Arduino and ESP8266 module, and now I am trying to send some sensor data to a TCP server. For this purposes I am using AT+CIPSTART command (to establish a TCP connection) and AT+CIPSEND to send the data. If I am testing it using Serial Monitor, it works fine. After entering CIPSEND command I can write some text in a terminal and this message/text will be sent to the TCP server. When I am trying to make it inside Arduino sketch, then it sends an empty message. The connection works, but I do not see any data. How can I send a message text (msg) with my TCP packet? Here is

Comments

Sign in or sign up to comment and upvote.

No comments yet.