Connecting the ESP8266 to a cloud server
In this recipe, we will connect the ESP8266 to the Internet and send data to a cloud server. The cloud server we will be sending data to is dweet.io
. The data we send to dweet.io
will be used later in this book, so ensure that you execute this section successfully.
Getting ready
As in the previous recipe, we won't need any extra components here. All we need to do is ensure that the ESP8266 is connected to the computer.
How to do it…
To accomplish this, follow these steps:
- We will connect the ESP8266 to a local Wi-Fi network that has an active Internet connection.
- Once the connection is successful, we will send a
GET
request to the cloud server and then display the reply that the server sends back to the ESP8266 ...
Get ESP8266 Internet of Things Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.