万本电子书0元读

万本电子书0元读

顶部广告

ESP8266 Internet of Things Cookbook电子书

售       价:¥

84人正在读 | 0人评论 6.2

作       者:Marco Schwartz

出  版  社:Packt Publishing

出版时间:2017-04-27

字       数:148.9万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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.
目录展开

ESP8266 Internet of Things Cookbook

Table of Contents

ESP8266 Internet of Things Cookbook

Credits

About the Author

About the Reviewer

www.PacktPub.com

eBooks, discount offers, and more

Why subscribe?

Customer Feedback

Preface

What this book covers

What you need for this book

Who this book is for

Sections

Getting ready

How to do it…

How it works…

There's more…

See also

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

1. Configuring the ESP8266

Introduction

Setting up the Arduino development environment for the ESP8266

Getting ready

How it works…

See also

Choosing an ESP8266 board

Available options

What to choose?

There's more…

See also

Required additional components

Required components

Sensors

DHT11

Photocell

Soil humidity sensor

Actuators

Relays

Power switch tail kit

Water pump

Breadboard

Jumper wires

Micro USB cable

See also

Uploading your first sketch to the ESP8266

Getting ready

How to do it…

How it works…

There's more…

See also

Connecting the ESP8266 to your local Wi-Fi network

Getting ready

How to do it…

How it works…

There's more…

See also

Connecting the ESP8266 to a cloud server

Getting ready

How to do it…

How it works…

There's more…

See also

Troubleshooting basic ESP8266 issues

The Board is not visible from the Arduino IDE

The board cannot be configured from the Arduino IDE

The board does not connect to your local Wi-Fi network

2. Your First ESP8266 Projects

Introduction

Functionalities of the ESP8266

Features

Pin configuration

Power pins

Serial pins

I2C and SPI pins

GPIO pins

Analog pins

Control pins

How it works...

See also

Reading digital signals

Getting ready

How to do it…

How it works…

There's more…

See also

Reading analog signals

Getting ready

How to do it…

How it works…

See also

Controlling an LED

Getting ready

How to do it…

How it works…

There's more…

See also

Dimming an LED

Getting ready

How to do it…

How it works…

There's more…

See also

Controlling a servo motor

Getting ready

How to do it…

How it works…

There's more…

See also

Measuring data from a digital sensor

Getting ready

How to do it…

How it works…

There's more…

See also

Controlling an OLED screen

Getting ready

How to do it…

How it works…

There's more…

See also

Troubleshooting basic ESP8266 issues

The analog pin cannot measure high voltages

The board stops working when things are connected to some pins

The board keeps on crashing and resetting

The board produces gibberish on the serial monitor when I rest it

3. More ESP8266 Functions

Introduction

Discovering the advanced functions of the ESP8266

Wi-Fi connectivity

Real-Time Clock (RTC)

Over the air update

Low power management

Working with files

See also

Using libraries on the ESP8266

Getting ready

How to do it…

How it works…

There's more…

See also

Discovering the filesystem of the ESP8266

Flash memory

Filesystem memory management

Setting up the ESP8266FS tool

There's more…

See also

Storing data in the ESP8266 filesystem

Getting ready

How to do it…

How it works…

There's more…

See also

Discovering the over the air update of the ESP8266 (OTA)

Over the air

Security

Safety

See also

Programming your ESP8266 OTA

Getting ready

How to do it…

How it works…

There's more…

See also

Troubleshooting basic ESP8266 issues

The Arduino IDE does not show the OTA port

The library no longer compiles

The txt file in my filesystem only holds one value even after saving several values in it

4. Using MicroPython on the ESP8266

Introduction

Introduction to MicroPython on the ESP8266

MicroPython & the ESP8266

See also

Discovering the MicroPython language

Discovering MicroPython

Auto-indent

Auto-completion

Interrupting a running program

Paste mode

Soft reset

The special variable _ (underscore)

Raw mode

See also

Getting started with MicroPython on the ESP8266

Getting ready

How to do it…

How it works…

See also

Controlling pins using MicroPython

Getting ready

How to do it…

How it works…

There is more…

See also

Reading data from a sensor using MicroPython

Getting ready

How to do it…

How it works…

See also

Sending data to the cloud using MicroPython

Getting ready

How to do it…

How it works…

See also

Troubleshooting common MicroPython issues

A library can't be used

The menu to upload files to the ESP8266 is not visible

The board can't be configured via OTA

5. Cloud Data Monitoring

Introduction

Internet of Things platforms for the ESP8266

Sparkfun ESP8266 thing

Adafruit feather HUZZAH

NodeMCU ESP8266

Wio Link

See also

Connecting sensors to your ESP8266 board

Getting ready

How to do it…

How it works…

There's more…

See also

Posting the sensor data online

Getting ready

How to do it…

How it works…

See also

Retrieving your online data

Getting ready

How to do it…

How it works…

There's more…

See also

Securing your online data

Locking your things

See also

Monitoring sensor data from a cloud dashboard

Getting ready

How to do it…

See also

Creating automated alerts based on the measured data

Getting ready

How to do it…

How it works…

There's more…

See also

Monitoring several ESP8266 modules at once

Getting ready

How to do it…

How it works…

There's more…

See also

Troubleshooting common issues with web services

The board is not connecting to the Wi-Fi network

The lock feature on dweet is not working

The alert feature on dweet is not working

The widgets on my dashboard do not display readings

6. Interacting with Web Services

Introduction

Discovering the Temboo platform

See also

Tweeting data from the ESP8266 board

Getting ready

How to do it…

How it works…

There's more…

See also

Posting updates on Facebook

Getting ready

How to do it…

How it works…

See also

Storing data on Google Drive

Getting ready

How to do it…

How it works…

See also

Automation with IFTTT

Getting ready

How to do it…

How it works…

There's more…

See also

Sending push notifications

Getting ready

How to do it…

How it works…

There's more…

See also

Sending e-mail notifications

Getting ready

How to do it…

How it works…

See also

Sending text message notifications

Getting ready

How to do it…

How it works…

There's more…

See also

Troubleshooting common issues with web services

The board is not connecting to the Wi-Fi network

The generate code button on Temboo returns an error when pressed the second time

The Temboo sketches bring up errors when I try to compile them

All my applets on IFTTT are being activated when the trigger is fired

The IFTTT SMS service is not working

7. Machine to Machine Interactions

Introduction

Types of IoT interactions

See also

Basic local machine to machine interactions

Getting ready

How to do it…

How it works…

See also

Cloud machine to machine interaction

Getting ready

How to do it…

How it works…

See also

Automated M2M with IFTTT

Getting ready

How to do it…

How it works…

See also

M2M alarm system

Getting ready

How to do it…

How it works…

See also

Automated light control

Getting ready

How to do it…

How it works…

There's more…

See also

Automated gardening controller

Getting ready

How to do it…

How it works…

See also

Troubleshooting common issues with web services

The board is not connecting to the Wi-Fi network

The board is not connecting to Adafruit IO

The board receives more than one reading or different readings from what was sent

My board is not successfully creating a hotspot

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部