|
|
|
|
@ -184,6 +184,17 @@ int main()
|
|
|
|
|
timer_send_temps = millis();
|
|
|
|
|
send_temperatures();
|
|
|
|
|
printf("gefran: 0x%02X\n", gtf_firmware_version(5));
|
|
|
|
|
|
|
|
|
|
if(read_Input(IN_KLATWASSER_DRAN, LEVEL)){
|
|
|
|
|
send_value(&mqtt_client, "/Filamentanlage/03_Wasserbecken/state/connected", 1);
|
|
|
|
|
set_Output(LED_KALTWASSER_DRAN_GR, 1);
|
|
|
|
|
set_Output(LED_KALTWASSER_DRAN_RT, 0);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
send_value(&mqtt_client, "/Filamentanlage/03_Wasserbecken/state/connected", 0);
|
|
|
|
|
set_Output(LED_KALTWASSER_DRAN_GR, 0);
|
|
|
|
|
set_Output(LED_KALTWASSER_DRAN_RT, 1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// send misc info
|
|
|
|
|
|