BigRoom changed IP MQTT

This commit is contained in:
Lexa
2025-08-21 14:21:03 +03:00
parent fd3fa6349b
commit f3817ca14c
2 changed files with 8 additions and 10 deletions

View File

@@ -12,7 +12,7 @@
default_envs = lolin default_envs = lolin
[env:lolin] [env:lolin]
platform = espressif32 platform = espressif32@6.11.0
board = lolin32 board = lolin32
framework = arduino framework = arduino
monitor_speed = 115200 monitor_speed = 115200
@@ -22,9 +22,11 @@ lib_deps =
robtillaart/RunningMedian @ ^0.3.4 robtillaart/RunningMedian @ ^0.3.4
wifwaf/MH-Z19 @ ^1.5.3 wifwaf/MH-Z19 @ ^1.5.3
plerup/EspSoftwareSerial @ ^6.15.2 plerup/EspSoftwareSerial @ ^6.15.2
ottowinter/AsyncMqttClient-esphome @ ^0.8.6 ; ottowinter/AsyncMqttClient-esphome @ ^0.8.6
ottowinter/ESPAsyncWebServer-esphome @ ^2.1.0 esphome/AsyncTCP-esphome @ ^2.1.4
ayushsharma82/AsyncElegantOTA @ ^2.2.6 ottowinter/ESPAsyncWebServer-esphome @ ^3.1.0
https://github.com/qdrk/AsyncElegantOTA.git
; ayushsharma82/AsyncElegantOTA @ ^2.2.8
ayushsharma82/WebSerial @ ^1.3.0 ayushsharma82/WebSerial @ ^1.3.0
plerup/EspSoftwareSerial @ ^8.1.0 plerup/EspSoftwareSerial @ ^8.1.0
powerbroker2/SerialTransfer @ ^3.1.3 powerbroker2/SerialTransfer @ ^3.1.3

View File

@@ -10,11 +10,7 @@ TimerHandle_t wifiReconnectTimer;
const char* ssid = "wf-home"; const char* ssid = "wf-home";
const char* password = "0ndthnrf"; const char* password = "0ndthnrf";
const char* ssid1 = "wf-home"; const char* mqtt_server = "192.168.1.10";
const char* password1 = "0ndthnrf";
const char* ssid2 = "BR";
const char* password2 = "499727479o";
const char* mqtt_server = "192.168.1.111";
void connectToWifi(); void connectToWifi();
//void connectToMqtt(); //void connectToMqtt();
@@ -127,7 +123,7 @@ void setup() {
#define SDA 33 //assign new SDA pin to GPIO1/D2/0TX for all slaves on i2c bus #define SDA 33 //assign new SDA pin to GPIO1/D2/0TX for all slaves on i2c bus
#define SCL 32 //assign new SCL pin to GPIO3/D7/0RX for all slaves on i2c bus #define SCL 32 //assign new SCL pin to GPIO3/D7/0RX for all slaves on i2c bus
Wire.begin(SDA, SCL); Wire.begin(SDA, SCL);
if (!htu.begin(SDA, SCL)) { if (!htu.begin(&Wire)) {
Serial.println("Couldn't find sensor!"); Serial.println("Couldn't find sensor!");
while (1); while (1);
} }