Espressif ESP8266 topic
- Introduction
- DFRobot ESPBee
- Manufacturer Documentation
- Modem Constructor
- Example Code
- Reference
-
Detailed Descriptions
Introduction
The ESP8266 is an older Espressif module, but still widely and cheaply available. This library does not support the "NON-OS" based AT commands. Update to the final release for the ESP8266.
DFRobot ESPBee
I don't actually recommend this module. It gets hot and eats power for no apparent reason. And the pin connections are a bit strange. But it is cheap and available. The pins are technically available to use the ESP's "light sleep" but I've never successfully gotten the module to actually enter light sleep mode. It always runs at full power draw. It's not possible to use deep sleep on the DFRobot bee.
Manufacturer Documentation
More information on the ESP8266 is here: https:/
Modem Constructor
EspressifESP8266:: EspressifESP8266(Stream* modemStream,
int8_t powerPin,
int8_t modemResetPin,
const char* ssid,
const char* pwd)
Construct a new Espressif ESP8266 object.
Parameters | |
---|---|
modemStream | The Arduino stream instance for serial communication. |
powerPin | The digital pin number of the mcu pin controlling power to the modem (active HIGH ). |
modemResetPin | The digital pin number of the pin on the mcu attached the the hard or panic reset pin of the modem. |
ssid | The wifi network ID. |
pwd | The wifi network password, assuming WPA2. |
The constructor initializes all of the provided member variables, constructs a loggerModem parent class with the appropriate timing for the module, calls the constructor for a TinyGSM modem on the provided modemStream, and creates a TinyGSM Client linked to the modem.
Should be set to a negative number if the modem should be continuously powered or the power cannot be controlled by the MCU.
Should be set to a negative number if the modem reset pin is not connected to the MCU. This is the ESP's RSTB/DIO16
pin.
Example Code
The ESP8266 is used in the menu a la carte example and the logging to ThingSpeak example.
Classes
- class EspressifESP8266
- The loggerModem subclass for any breakout of the Espressif ESP8266 wifi chip or ESP32 wifi/bluetooth chip that has been flashed with Espressif's AT command firmware.