I want to start sending sensor data to a webpage with the ESP8266. I've been looking for libraries for 2 days no and cant seem to get anything to work besides the simple AT commands. Could someone steer me in the right direction?
I want to start sending sensor data to a webpage with the ESP8266. I've been looking for libraries for 2 days no and cant seem to get anything to work besides the simple AT commands. Could someone steer me in the right direction?
You don't send data to a web page (Normally), the web page requests data from you (your ESP8266 Module)
.one thing that may help you alot with this is to think of the ESP8266 as just a TCP/IP (Network) processor. Use the Arduino to send the data to an MQTT server and use a web page to read from MQTT, Or a phone, or any other computer.
Making the ESP8266 run a web page is also a possibility but not very efficient and not very discoverable. Using the Arduino would be a sure way to run out of RAM and FLASH.
So. Arduino collects all sorts of data your interested in and publishes it to an MQTT server (Mosquitto, Eclipse, Other free services can provide the actual server if you dont want to run your own).
A browser can subscribe to the MQTT server directly or via a web page. You can also easily get other Arduinos or PI, or ... to subscribe and publish to this MQTT server and so now you have a solid target to get the data. You have seperation of your data sources and what is used to view the data.
I have many videos on my YouTube channel that shows this in operation, and there are many more beyond my videos too.
If you can describe from end to end what your trying to achieve then I can advise on a solution better.
You don't send data to a web page (Normally), the web page requests data from you (your ESP8266 Module)
.one thing that may help you alot with this is to think of the ESP8266 as just a TCP/IP (Network) processor. Use the Arduino to send the data to an MQTT server and use a web page to read from MQTT, Or a phone, or any other computer.
Making the ESP8266 run a web page is also a possibility but not very efficient and not very discoverable. Using the Arduino would be a sure way to run out of RAM and FLASH.
So. Arduino collects all sorts of data your interested in and publishes it to an MQTT server (Mosquitto, Eclipse, Other free services can provide the actual server if you dont want to run your own).
A browser can subscribe to the MQTT server directly or via a web page. You can also easily get other Arduinos or PI, or ... to subscribe and publish to this MQTT server and so now you have a solid target to get the data. You have seperation of your data sources and what is used to view the data.
I have many videos on my YouTube channel that shows this in operation, and there are many more beyond my videos too.
If you can describe from end to end what your trying to achieve then I can advise on a solution better.