Book Image

ESP8266 Internet of Things Cookbook

By : Marco Schwartz
Book Image

ESP8266 Internet of Things Cookbook

By: Marco Schwartz

Overview of this book

The ESP8266 Wi-Fi Module is a self contained System on Chip (SOC) with an integrated TCP/IP protocol stack and can give any microcontroller access to your Wi-Fi network. It is capable of either hosting an application or offloading all Wi-Fi networking functions from another application processor. This book contains practical recipes that will help you master all ESP8266 functionalities. You will start by configuring and customizing the chip in line with your requirements. Then you will focus on core topics such as on-board processing, sensors, GPIOs, programming, networking, integration with external components, and so on. We will also teach you how to leverage Arduino using the ESP8266 and you'll learn about its libraries, file system, OTA updates, and so on. The book also provide recipes on web servers, testing, connecting with the cloud, and troubleshooting techniques. Programming aspects include MicroPython and how to leverage it to get started with the ESP8266. Towards the end, we will use these concepts and create an interesting project (IOT). By the end of the book, readers will be proficient enough to use the ESP8266 board efficiently.
Table of Contents (15 chapters)
ESP8266 Internet of Things Cookbook
About the Author
About the Reviewer
Customer Feedback

Using libraries on the ESP8266

In this recipe, we will learn how to use libraries with the ESP8266. The libraries will play a huge role in enabling us to access additional functions on our board. Apart from the Arduino core libraries that come with the Arduino IDE by default, we will need other libraries to explore the full potential of the ESP8266.

There are some ESP8266 libraries that get installed on the Arduino IDE automatically when you install the ESP8266 core, as explained in the first recipe of Chapter 1, Configuring the ESP8266. If you followed the instructions in Chapter 1, Configuring the ESP8266, you should already have those libraries on your Arduino IDE.

Some third-party ESP8266 libraries do not come with the ESP8266 core and you have to download them and install them on your Arduino. This is an easy procedure. You can use the Arduino library manager to search and download the library you need. To do that, open your Arduino IDE and navigate to Sketch | Include Library | Manage...