minor: Improve MQTT warning message (closes )

This commit is contained in:
Christian W. Zuckschwerdt 2023-09-20 11:15:55 +02:00
parent 36f6418436
commit be332c6489
4 changed files with 5 additions and 4 deletions

View file

@ -7,7 +7,7 @@
# The thermostats all transmit on or around 869.01Mhz
# I run the conf file from the command line with:
#rtl_433 -Y classic -R 0 -c /home/russ/.config/rtl_433/HeatmiserPRT-W.conf -f 869.01Mhz -M newmodel
#rtl_433 -Y classic -R 0 -c /home/russ/.config/rtl_433/HeatmiserPRT-W.conf -f 869.01M
# You will need to change the prettified channel codes to match your thermostat's output.

View file

@ -2,7 +2,7 @@
# listen on 868.286Mhz
# rtl_433 -Y classic -R 0 -X "name=SalusRT300RF, m=FSK_PCM, s=833, l=833, r=16000, preamble={24}0xaaaaaa,get=@0:{16}:Thermostat ID, get=@28:{4}:heat:[1:ON 2:OFF]" -f 868.286Mhz -F "mqtt://192.168.1.150,retain=1,devices=sensors/rtl_433/P[protocol]/C[channel]"
# Run with:
#rtl_433 -Y classic -R 0 -c /home/russ/.config/rtl_433/SalusRT300RF.conf -f 868.286Mhz -M newmodel
#rtl_433 -Y classic -R 0 -c /home/russ/.config/rtl_433/SalusRT300RF.conf -f 868.286M
# Report iso time:
report_meta time:iso

View file

@ -19,6 +19,7 @@ also TFA 30.3222.02 (a LaCrosse-TX141W).
also TFA 30.3251.10 (a LaCrosse-TX141W).
also some rebrand (ORIA WA50B) with a slightly longer timing, s.a. #2088
also TFA 30.3243.02 (a LaCrosse-TX141Bv3)
also LaCrosse TX141-Bv4 (seems identical to LaCrosse-TX141Bv3)
LaCrosse Color Forecast Station (model C85845), or other LaCrosse product
utilizing the remote temperature/humidity sensor TX141TH-Bv2 transmitting

View file

@ -86,9 +86,9 @@ static void mqtt_client_event(struct mg_connection *nc, int ev, void *ev_data)
}
case MG_EV_CLOSE:
if (!ctx)
break; // shuttig down
break; // shutting down
if (ctx->prev_status == 0)
print_log(LOG_WARNING, "MQTT", "MQTT Connection failed...");
print_log(LOG_WARNING, "MQTT", "MQTT Connection lost, reconnecting...");
// reconnect
char const *error_string = NULL;
ctx->connect_opts.error_string = &error_string;