How to send data from ESP8266 to Node.js server
I am doing a smart home project where an ESP8266 WiFi module collects data from sensors and sends the data to a website. I have programmed the ESP8266 to collect data successfully. Unfortunately, my university course does not teach us web development, so I have to learn web development by myself. After some research and learning, I managed to use Node.js to create a backend web server and launch a simple website (using my computer as local host). However, I still do not understand how to send data from the ESP8266 to the Node.js server. I found that there are a few ways to send data from the ESP8266 to a web server. Some examples are HTTP, MQTT, web socket, firebase and etc. Since I am new to this, can you guys give some suggestion on which way is better/easier to use? Kindly provide relevant tutorials if possible. Thank you.