12 #include "Adafruit_MQTT.h"
13 #include "Adafruit_MQTT_Client.h"
15 #include <ESP8266WiFi.h>
16 #include <WiFiClient.h>
17 #include <ESP8266HTTPUpdateServer.h>
18 #include <ESP8266mDNS.h>
19 #include <ESP8266WebServer.h>
67 int errorState(
int state,
int ledRed,
int ledGreen);
86 void ICACHE_RAM_ATTR
lwdtcb(
void);
128 int startWiFi(IPAddress _ip, IPAddress _dns, IPAddress _gateway, IPAddress _subnet,
char *_ssid,
char *_password,
char *_host);
void showWiFiStatus(int i)
Utility function Display WiFi status in clear text.
boolean isNumeric(String str)
Utility function Checks if a string is numeric. Original code found here: http://tripsintech....
int getBootDevice(void)
Utility function See https://www.sigmdel.ca/michel/program/esp8266/arduino/watchdogs2_en....
void lwdtFeedInit(void)
Utility function Initializes the loop watchdog interrupt routine. To be used in setup() at the end.
void printFloat(float value, int places)
Utility function: Prints value with places of decimal places determine by precision.
bool doWifiConnect(char *_ssid, char *_password)
Utility function Tries to reconnect the WiFi connection Software found here: https://github....
void ICACHE_RAM_ATTR lwdtcb(void)
Utility function lwdTicker callback routine Code found here: https://www.sigmdel.ca/michel/program/es...
String formatBytes(size_t bytes)
Utility function Original code found here: https://tttapa.github.io/ESP8266/Chap16%20-%20Data%20Loggi...
int MQTT_connect(Adafruit_MQTT_Client *_mqtt)
Utility function Function to connect and reconnect as necessary to the MQTT server.
void keypressWait(void)
Utility function Halt the program and wait for "key press" at the serial port. For DEBUG purpose only...
void lwdtFeed(void)
Utility function Resets the loop watchdog counter also known as "kicking the watchdog".
int errorState(int state, int ledRed, int ledGreen)
Utility function Visual error indication via LED at pin D2 This is a dead end. You will need to fix t...
int startWiFi(IPAddress _ip, IPAddress _dns, IPAddress _gateway, IPAddress _subnet, char *_ssid, char *_password, char *_host)
Utility function Starts everything related to WiFi and Internet connections.