some stuff

This commit is contained in:
2021-12-07 23:35:15 +01:00
parent 56d644145b
commit 54e84e4b5d
6 changed files with 399 additions and 18 deletions
+1 -1
View File
@@ -71,7 +71,7 @@
// PS3 Controller
// ESP32 MAC BL 24:62:AB:F2:4B:3A
#define HW1
#define RHEDE
//Network config RHEDE
#ifdef RHEDE
+3 -3
View File
@@ -39,7 +39,7 @@ ConsolControl consolControl;
IPAddress local_IP(WLAN_IP);
IPAddress gateway(WLAN_GATEWAY);
IPAddress subnet(WLAN_SUBNETMASK);
// IPAddress mqtt_server(MQTT_SERVER);
IPAddress mqtt_server(MQTT_SERVER);
WiFiClient wifi_client;
PubSubClient mqtt_client(wifi_client);
@@ -73,8 +73,8 @@ void setup() {
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
// mqtt_client.setServer(mqtt_server, MQTT_PORT);
mqtt_client.setServer(MQTT_SERVER, MQTT_PORT);
mqtt_client.setServer(mqtt_server, MQTT_PORT);
// mqtt_client.setServer(MQTT_SERVER, MQTT_PORT);
mqtt_client.setSocketTimeout(1);
reconnectMqtt();