This instructable comes in a series of articles about connecting hardware like Arduino and ESP8266 to the cloud. I'm going to explain you how to make your ESP32 chip connected to the cloud with AskSensors IoT service.
After the big success of the ESP8266, the ESP32 is a new chip from Espressif that combines WiFi and Bluetooth wireless capabilities with two CPU cores and a decent hardware peripheral set.
During this tutorial you will learn:
AskSensors is an IoT platform designed to be the easiest application in the market, allowing users to connect, visualize and analyze their sensors data over the cloud.
Let's suppose we want to monitor the temperature of a room and store these values somewhere in the cloud so that they can be elaborated later. This is a typical scenario where it is necessary to know how to send data from the ESP32 to AskSensors. But there are many other scenarios where this tutorial could be useful for you.
So keep reading ;-)
To install the ESP32 board in your Arduino IDE, follow the instructions below:
Go to the "Additional Board Manager URLs" field, Enter the following URL:
https://dl.espressif.com/dl/package_esp32_index.json
If you already have the ESP8266 boards URL, separate the URLs with a comma as show below:
https://dl.espressif.com/dl/package_esp32_index.json, http://arduino.esp8266.com/stable/package_esp8266com_index.json <br>
Now, open boards manager (Tools > Board > Boards Manager), search for ESP32 and click the install button for the "ESP32 by Espressif Systems". It takes some few seconds.
Download this demo from AskSensors Github page and decompress it. The code includes the libraries for both connecting to a WiFi network and to perform the HTTP requests.
You will need to modify the following:
const char* ssid = "..............."; //Wifi SSID const char* password = "..............."; //Wifi Password const char* apiKeyIn = "................"; // API Key
Upload the code with the Arduino IDE.
Thanks for reading.
Discover our tutorials: https://www.instructables.com/member/askSensors/