File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1111 SOURCE: https://github.com/sensate-io/firmware-esp8266.git
1212
1313 @section HISTORY
14+ v33 - Improved MQTT Setup Routine
1415 v32 - Added MQTT Support!
1516 v31 - Fixed an issue with DHT11 Sensors
1617 v30 - Added support for SSD1306 I2C Displays
2627
2728Display* display = NULL ;
2829
29- int currentVersion = 32 ;
30+ int currentVersion = 33 ;
3031boolean printMemory = false ;
3132
32- String board = " Generic" ;
33- char firmwareType[] = " ESP8266" ;
33+ // String board = "Generic";
34+ // char firmwareType[] = "ESP8266";
3435
35- // String board = "NodeMCU";
36- // char firmwareType[] = "ESP8266-NodeMCU";
36+ String board = " NodeMCU" ;
37+ char firmwareType[] = " ESP8266-NodeMCU" ;
3738
3839// String board = "ESP12s";
3940// char firmwareType[] = "ESP8266-ESP12s";
Original file line number Diff line number Diff line change 1111 SOURCE: https://github.com/sensate-io/firmware-esp8266.git
1212
1313 @section HISTORY
14+ v33 - Improved MQTT Setup Routine
1415 v32 - Added MQTT Support!
1516 v29 - First Public Release
1617*/
@@ -28,6 +29,7 @@ extern const char *myHostname;
2829extern Display* display;
2930extern String bridgeURL;
3031extern MQTT* mqtt;
32+ extern boolean enableMQTT;
3133
3234void startRestServer () {
3335 Serial.println (" startRestServer" );
@@ -240,6 +242,7 @@ void initMqtt() {
240242
241243 yield ();
242244 }
245+ enableMQTT=true ;
243246
244247 }
245248 else
@@ -252,6 +255,7 @@ void initMqtt() {
252255 EEPROM.write (357 , 0 );
253256
254257 mqtt = NULL ;
258+ enableMQTT=false ;
255259
256260 yield ();
257261 }
You can’t perform that action at this time.
0 commit comments