diff --git a/include/mcp9808.h b/include/mcp9808.h index 54a59ad..1486339 100644 --- a/include/mcp9808.h +++ b/include/mcp9808.h @@ -70,5 +70,5 @@ void Clear_MCP9808(String deviceId = "4711") { char test[1] = ""; sprintf(topic, "%s%s%s", "hjk/devices/", deviceId.c_str(), "/telemetry/temperature_MCP9808"); client.publish(topic, test, false); - delay(50); + delay(100); } \ No newline at end of file diff --git a/include/mess_BME280.h b/include/mess_BME280.h index e602506..6c71485 100755 --- a/include/mess_BME280.h +++ b/include/mess_BME280.h @@ -97,11 +97,11 @@ void Clear_BME280(String deviceId = "4711"){ char test[1] = ""; sprintf(topic, "%s%s%s", "hjk/devices/", deviceId.c_str(), "/telemetry/temperature_BME_280" ); client.publish(topic,test, false); - delay(10); + delay(100); sprintf(topic, "%s%s%s", "hjk/devices/", deviceId.c_str(), "/telemetry/humity_BME280" ); client.publish(topic,test, false); - delay(10); + delay(100); sprintf(topic, "%s%s%s", "hjk/devices/", deviceId.c_str(), "/telemetry/pressure" ); client.publish(topic,test, false); - delay(10); + delay(100); } \ No newline at end of file diff --git a/include/mess_BMP280.h b/include/mess_BMP280.h index 5b97c17..a48a020 100644 --- a/include/mess_BMP280.h +++ b/include/mess_BMP280.h @@ -85,11 +85,11 @@ void Clear_BMP280(String deviceId = "4711"){ char test[1] = ""; sprintf(topic, "%s%s%s", "hjk/devices/", deviceId.c_str(), "/telemetry/temperature_BMP_280" ); client.publish(topic,test, false); - delay(10); + delay(100); sprintf(topic, "%s%s%s", "hjk/devices/", deviceId.c_str(), "/telemetry/approx_altitude" ); client.publish(topic,test, false); - delay(10); + delay(100); sprintf(topic, "%s%s%s", "hjk/devices/", deviceId.c_str(), "/telemetry/pressure" ); client.publish(topic,test, false); - delay(10); + delay(100); } \ No newline at end of file diff --git a/platformio.ini b/platformio.ini index c30e606..a0ff16c 100644 --- a/platformio.ini +++ b/platformio.ini @@ -39,14 +39,14 @@ build_flags = build_flags = ${env.build_flags} -DDEBUG=0 -DNOADS=0 - -DNAME=\"WETTERSTATION2\" + -DNAME=\"WETTERSTATIONMARCEL\" -DSTASSID=\"MagentaWLAN-RGDO\" -DSTAPSK=\"93329248424922704583\" -DGATEWAY=\"192.168.127.1\" -DDNS=\"192.168.127.1\" -DKMYIP=\"192.168.127.45\" - -Dmqtt_server=\"hjkmqtt.dedyn.io\" - -Dmqtt_port=61883 + -Dmqtt_server=\"192.168.127.193\" + -Dmqtt_port=1883 -DTERROR=5 -DTLOWBATT=60 -DTINTERVAL=10 @@ -67,7 +67,7 @@ build_flags = ${env.build_flags} -DDNS=\"192.168.2.1\" -DKMYIP=\"192.168.2.81\" -Dmqtt_server=\"hjkmqtt.dedyn.io\" - -Dmqtt_port=8883 + -Dmqtt_port=61883 -DTERROR=20 -DTLOWBATT=60 -DTINTERVAL=10 @@ -88,7 +88,7 @@ build_flags = ${env.build_flags} -DDNS=\"192.168.2.1\" -DKMYIP=\"192.168.2.41\" -Dmqtt_server=\"hjkmqtt.dedyn.io\" - -Dmqtt_port=8883 + -Dmqtt_port=61883 -DTERROR=20 -DTLOWBATT=60 -DTINTERVAL=5