itead / ITEADLIB_Arduino_WeeESP8266

An easy-to-use Arduino ESP8266 library besed on AT firmware.
MIT License
527 stars 284 forks source link

How to send custom message in response ? #98

Closed jackeychina closed 6 years ago

jackeychina commented 6 years ago

Hi i have implemented TCP server example and now i want to send custom message as response.

So This method send response - wifi.send(mux_id, buffer, len); So in this When i send "hello" to this TCP server then this wifi,send also send me "hello" as a response.

But now i want to pass string "We got your request. wait" . So how can i pass this custom message with wifi.send ?