2024-09-1701
This commit is contained in:
parent
a28e509697
commit
4304e9128b
|
@ -29,8 +29,8 @@ build_flags = ${env.build_flags}
|
||||||
-DGATEWAY=\"192.168.127.1\"
|
-DGATEWAY=\"192.168.127.1\"
|
||||||
-DDNS=\"192.168.127.1\"
|
-DDNS=\"192.168.127.1\"
|
||||||
-DKMYIP=\"192.168.127.42\"
|
-DKMYIP=\"192.168.127.42\"
|
||||||
-Dmqtt_server=\"hjkmqtt.dedyn.io\"
|
-Dmqtt_server=\"192.168.127.193\"
|
||||||
-Dmqtt_port=61883
|
-Dmqtt_port=1883
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
WiFiClient espClient;
|
WiFiClient espClient;
|
||||||
PubSubClient client(espClient);
|
PubSubClient client(espClient);
|
||||||
|
|
||||||
#define mqtt_port 61883
|
#define mqtt_port 1883
|
||||||
|
|
||||||
//cf:d7:ab:1f:24:2c
|
//cf:d7:ab:1f:24:2c
|
||||||
String Adresse = "96:33:bb:bf:ff:ab"; // Bluetooth Adresse die zu Anwesenheitserkennung überwacht wird ET585
|
String Adresse = "96:33:bb:bf:ff:ab"; // Bluetooth Adresse die zu Anwesenheitserkennung überwacht wird ET585
|
||||||
|
@ -110,7 +110,7 @@ static void setup_wifi() {
|
||||||
}
|
}
|
||||||
Serial.println(" WiFi connected");
|
Serial.println(" WiFi connected");
|
||||||
client.setServer(mqtt_server, mqtt_port);
|
client.setServer(mqtt_server, mqtt_port);
|
||||||
//client.setCallback(callback);
|
client.setCallback(callback);
|
||||||
Serial.print("IP address: \t");
|
Serial.print("IP address: \t");
|
||||||
Serial.println(WiFi.localIP());
|
Serial.println(WiFi.localIP());
|
||||||
}
|
}
|
||||||
|
@ -165,6 +165,7 @@ void setup()
|
||||||
digitalWrite (RelaisPin, LOW);
|
digitalWrite (RelaisPin, LOW);
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
Serial.println("");
|
Serial.println("");
|
||||||
|
setup_wifi();
|
||||||
Serial.println("Starte BLE Scanner");
|
Serial.println("Starte BLE Scanner");
|
||||||
pServerAddress = new BLEAddress(Adresse.c_str());
|
pServerAddress = new BLEAddress(Adresse.c_str());
|
||||||
BLEDevice::init("");
|
BLEDevice::init("");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user