I am using wifi module esp8266 , what is easiest way to communicate arduino with desktop application and make a wireless communication between them. Please refer any useful resources
1 Answers
Either use TCP or UDP to communicate. With TCP one end will be the server and will open a socket (your choice) and the other end will connect to it (much like communicating with a web server). With UDP both ends will open a socket and send discrete packets backwards and forwards.
How you would do either of those in C# is outside the scope of this website.
The ESP8266 has AT commands that perform the task for you - chiefly AT+CIPSTART.
The simplest to understand is probably TCP communication where you can just follow any of the myriad of website based examples. However instead of communicating with a website using HTTP you will be communicating with your own server software written in C# using your own custom designed protocol.
A simpler option may be to use a real web server as a "man in the middle" to which both the ESP8266 and your C# program communicate. That website could become a database back-end for your program.
Of course, what you decide to do depends entirely on how complex your program is and what data it is you want to transfer.
- 105,851
- 5
- 82
- 139