uplaod first error free source

This commit is contained in:
Siwat Sirichai 2019-08-21 20:25:15 +07:00
parent 82c50d3fd9
commit f43bc9bc5b
1 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
#include <ESP8266mDNS.h>
#include <ESP8266mDNS_Legacy.h>
#include <LEAmDNS.h>
#include <LEAmDNS_lwIPdefs.h>
#include <LEAmDNS_Priv.h>
#include <BearSSLHelpers.h>
#include <CertStoreBearSSL.h>
#include <ESP8266WiFi.h>
@ -23,7 +28,7 @@
#include "settings.h"
#include <ESP8266MQTTMesh.h>
#include <FS.h>
wifi_conn networks[] = {WIFI_CONN(wifi_ssid, wifi_password, NULL, 0),NULL};
// |----------------------------------|
// | SIWAT INC |
// |----------------------------------|
@ -35,6 +40,7 @@ ESP8266MQTTMesh mesh = ESP8266MQTTMesh::Builder(networks, mqtt_server, mqtt_port
void callback(const char *topic, const char *msg);
void setup() {
Serial.begin(115200);
Serial.print("Loading . . .");
delay(1000);
mesh.setCallback(callback);
mesh.begin();