This instructable shows you a simple Internet of Things demo using the ESP8266 NodeMCU and an online IoT service called AskSensors. We demonstrate you how to quickly get data from the ESP8266 HTTPS client and plot it in graph into the AskSensors IoT Platform.
To follow along with this tutorial you will simply need:
First, Create a new account at AskSensors. You will receive an email containing all the instructions you need follow to login (It is super easy).
Follow this getting started guide which explains you how to create and set up a new Sensor so we will be able to write data to this sensor. Here are the main steps:
Example sketch and ESP8266 WIFI libraries are available in github.
The provided code is ready to use as is. It connects the ESP8266 to wireless network as HTTPS client, and then push data to AskSensors every 25 seconds . You need to fill the following:
// Wifi config const char* wifi_ssid = ".........."; // SSID const char* wifi_password = ".........."; // WIFI
const char* apiKeyIn = ".........."; // API KEY IN, example: FALOAPPKH17ZR4Q23A8U9W0XPJL0F6OG
delay(25000); // delay 25sec
Open serial terminal. You can cross-check the graph readings with the values being printed on your Arduino Terminal.
That's it!
Thanks for reading this instructable!
You can try more tutorials here.
Finally, your feedback will be appreciated. please leave a comment below!