This project can be useful for you if you have a website and you can't get static IP address from your internet provider. In this project the ESP is set to station mode and it sends several bytes of data to my website. I can browse at the data from the internet by logging to a page in my website. A disadvantage of this system is that you can't access the ESP directly from a browser on the internet. This code is set to transfer the data to the website once every 60 seconds. Changes to the code can allow for transfer of more data. The idea is taken from here: https://thingspeak.com/ The idea is to request a file and to add the data using URL parameters. The PHP file (a1.php) records the data on another file a2.php. I added a suggestion for a PHP script file a1.php, file a2.php is a blank file which a1.php writes the data to be read. To see the data log to page http://moty22.co.uk/a2.php.In the PIC code enter your SSID and PASSWORD of your router. Also change the name of my website to yours. You can use my website to test your project.
The circuit works on 3.3V supply, the ESP doesn't tolerate 5V.
Comments