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

Troubleshooting basic ESP8266 issues

You may run into some issues when using the ESP8266's advanced functions. We will list some of the common problems that many people face and some ways of troubleshooting them.

The Arduino IDE does not show the OTA port

There are three scenarios in which this could happen:

  • The ESP8266 board has not successfully connected to the Wi-Fi network

  • The firewall is blocking your Arduino IDE from accessing the OTA port

  • The Arduino IDE needs a restart

To solve the issue, start by restarting the Arduino IDE. If that does not work, troubleshoot the first scenario by checking whether the ESP8266 IP address was displayed on the serial monitor after uploading the OTA code. If it wasn't, check the Wi-Fi credentials in your sketch and make sure they are correct.

If all that does not work, try changing the firewall settings on your computer, so that it allows the Arduino IDE to access Wi-Fi network features.

The library no longer compiles

This sometimes happens after updating libraries...