user22724: I want to send commands to ESP8266 over WiFi from my phone(I'm working on building an App using PhoneGap). I'm new to this module and WiFi. What I'm doing right now is that I communicate with the module by sending GET (or POST) commands. I'm sure there should be a better way but I can't seem to find how. What is the correct way to talk to ESP8266 over WiFi?

user27653: Depending on what best suits your needs, you could use:

http GET/POST commands
Websockets over http
MQTT protocol
Your own TCP or UDP socket protocol
etc.

In all cases, what you code into the ESP8266 processor/flash will need to receive and process the commands. The possibilities are near endless, since you are writing the App and the code for the module and can make those design decisions.

22724: <p>I want to send commands to ESP8266 over WiFi from my phone(I'm working on building an App using PhoneGap). I'm new to this module and WiFi. What I'm doing right now is that I communicate with the module by sending GET (or POST) commands. I'm sure there should be a better way but I can't seem to find how. What is the correct way to talk to ESP8266 over WiFi?</p>
 27653: <p>Depending on what best suits your needs, you could use:</p>

<ul>
<li>http GET/POST commands</li>
<li>Websockets over http</li>
<li>MQTT protocol</li>
<li>Your own TCP or UDP socket protocol</li>
<li>etc.</li>
</ul>

<p>In all cases, what you code into the ESP8266 processor/flash will need to receive and process the commands. The possibilities are near endless, since you are writing the App and the code for the module and can make those design decisions.</p>
