This project will help you to understand the basics of WebSocket, how it works and how we can use socket programming for esp8266 or any other microcontrollers.
For this project, I used my own custom node server hosted on Heroku. I made a simple UI with the help of HTML, CSS, and JavaScript. Also, I am using Socket.io a javascript library for server-client connections. For esp its acts as a client that take data from the server( "test-code-0001.herokuapp.com" addresses).
You may also run the socket server in your local machine(laptop, desktop) with proper internet ( LAN ).
For Windows: use ipconfig command to grab the local IP address.
For Linux : use ifconfig command.
Custom Node Server Repo: PSR0001/Test-Heroku-Server: A Socket makes server and device communication easy. A server needs a socket.io library to be installed. (github.com)
Comments