售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
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
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜