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 11
11
SOURCE: https://github.com/sensate-io/firmware-esp8266.git
12
12
13
13
@section HISTORY
14
+ v33 - Improved MQTT Setup Routine
14
15
v32 - Added MQTT Support!
15
16
v31 - Fixed an issue with DHT11 Sensors
16
17
v30 - Added support for SSD1306 I2C Displays
26
27
27
28
Display* display = NULL ;
28
29
29
- int currentVersion = 32 ;
30
+ int currentVersion = 33 ;
30
31
boolean printMemory = false ;
31
32
32
- String board = " Generic" ;
33
- char firmwareType[] = " ESP8266" ;
33
+ // String board = "Generic";
34
+ // char firmwareType[] = "ESP8266";
34
35
35
- // String board = "NodeMCU";
36
- // char firmwareType[] = "ESP8266-NodeMCU";
36
+ String board = " NodeMCU" ;
37
+ char firmwareType[] = " ESP8266-NodeMCU" ;
37
38
38
39
// String board = "ESP12s";
39
40
// char firmwareType[] = "ESP8266-ESP12s";
Original file line number Diff line number Diff line change 11
11
SOURCE: https://github.com/sensate-io/firmware-esp8266.git
12
12
13
13
@section HISTORY
14
+ v33 - Improved MQTT Setup Routine
14
15
v32 - Added MQTT Support!
15
16
v29 - First Public Release
16
17
*/
@@ -28,6 +29,7 @@ extern const char *myHostname;
28
29
extern Display* display;
29
30
extern String bridgeURL;
30
31
extern MQTT* mqtt;
32
+ extern boolean enableMQTT;
31
33
32
34
void startRestServer () {
33
35
Serial.println (" startRestServer" );
@@ -240,6 +242,7 @@ void initMqtt() {
240
242
241
243
yield ();
242
244
}
245
+ enableMQTT=true ;
243
246
244
247
}
245
248
else
@@ -252,6 +255,7 @@ void initMqtt() {
252
255
EEPROM.write (357 , 0 );
253
256
254
257
mqtt = NULL ;
258
+ enableMQTT=false ;
255
259
256
260
yield ();
257
261
}
You can’t perform that action at this time.
0 commit comments