Changed IP MQTT VT
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
#define WIFI_PASSWORD "0ndthnrf"
|
#define WIFI_PASSWORD "0ndthnrf"
|
||||||
#define MY_HOSTNAME "ESP8266_GW"
|
#define MY_HOSTNAME "ESP8266_GW"
|
||||||
//#define MQTT_SERV "192.168.1.250"
|
//#define MQTT_SERV "192.168.1.250"
|
||||||
#define MQTT_SERV "192.168.1.111"
|
#define MQTT_SERV "192.168.1.10"
|
||||||
#define TOPIC "home/"
|
#define TOPIC "home/"
|
||||||
|
|
||||||
#define MAX_PAGE (4)
|
#define MAX_PAGE (4)
|
||||||
@@ -71,7 +71,7 @@ WiFiEventHandler wifiConnectHandler;
|
|||||||
WiFiEventHandler wifiDisconnectHandler;
|
WiFiEventHandler wifiDisconnectHandler;
|
||||||
Ticker wifiReconnectTimer;
|
Ticker wifiReconnectTimer;
|
||||||
//const char* mqtt_server = "192.168.1.250";
|
//const char* mqtt_server = "192.168.1.250";
|
||||||
const char* mqtt_server = "192.168.1.111";
|
const char* mqtt_server = "192.168.1.10";
|
||||||
char v[12];
|
char v[12];
|
||||||
|
|
||||||
struct contacts
|
struct contacts
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ void setup()
|
|||||||
lcd.setBacklight(255);
|
lcd.setBacklight(255);
|
||||||
lcd.setCursor(0, 0);
|
lcd.setCursor(0, 0);
|
||||||
lcd.print(F("Booting"));
|
lcd.print(F("Booting"));
|
||||||
|
WiFi.mode(WIFI_STA);
|
||||||
WiFi.hostname("VT_ESP");
|
WiFi.hostname("VT_ESP");
|
||||||
// WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
|
// WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
|
||||||
// if(WiFi.waitForConnectResult() == WL_CONNECTED){
|
// if(WiFi.waitForConnectResult() == WL_CONNECTED){
|
||||||
|
|||||||
Reference in New Issue
Block a user