thermferm/server.c

changeset 715
f5d85af156ab
parent 714
24749c296a50
child 716
5c30c8ef83a8
--- a/thermferm/server.c	Tue Apr 30 17:26:41 2024 +0200
+++ b/thermferm/server.c	Wed May 01 14:38:37 2024 +0200
@@ -1284,6 +1284,7 @@
                                         if (simulator->air_present != i)
                                             syslog(LOG_NOTICE, "Simulator %s air_present %s to %s", simulator->uuid, DEVPRESENT[simulator->air_present], DEVPRESENT[i]);
                                         simulator->air_present = i;
+					device_present(simulator->air_address, i);
                                         break;
                                     }
                                 }
@@ -1301,6 +1302,7 @@
                                         if (simulator->beer_present != i)
                                             syslog(LOG_NOTICE, "Simulator %s beer_present %s to %s", simulator->uuid, DEVPRESENT[simulator->beer_present], DEVPRESENT[i]);
                                         simulator->beer_present = i;
+					device_present(simulator->beer_address, i);
                                         break;
                                     }
                                 }
@@ -1318,6 +1320,7 @@
                                         if (simulator->beer_present2 != i)
                                             syslog(LOG_NOTICE, "Simulator %s beer_present2 %s to %s", simulator->uuid, DEVPRESENT[simulator->beer_present2], DEVPRESENT[i]);
                                         simulator->beer_present2 = i;
+					device_present(simulator->beer_address2, i);
                                         break;
                                     }
                                 }
@@ -1335,6 +1338,7 @@
                                         if (simulator->chiller_present != i)
                                             syslog(LOG_NOTICE, "Simulator %s chiller_present %s to %s", simulator->uuid, DEVPRESENT[simulator->chiller_present], DEVPRESENT[i]);
                                         simulator->chiller_present = i;
+					device_present(simulator->chiller_address, i);
                                         break;
                                     }
                                 }
@@ -1366,6 +1370,7 @@
                                         if (simulator->cooler_present != i)
                                             syslog(LOG_NOTICE, "Simulator %s cooler_present %s to %s", simulator->uuid, DEVPRESENT[simulator->cooler_present], DEVPRESENT[i]);
                                         simulator->cooler_present = i;
+					device_present(simulator->cooler_address, i);
                                         break;
                                     }
                                 }
@@ -1404,6 +1409,7 @@
                                         if (simulator->heater_present != i)
                                             syslog(LOG_NOTICE, "Simulator %s heater_present %s to %s", simulator->uuid, DEVPRESENT[simulator->heater_present], DEVPRESENT[i]);
                                         simulator->heater_present = i;
+					device_present(simulator->heater_address, i);
                                         break;
                                     }
                                 }
@@ -1421,6 +1427,7 @@
                                         if (simulator->fan_present != i)
                                             syslog(LOG_NOTICE, "Simulator %s fan_present %s to %s", simulator->uuid, DEVPRESENT[simulator->fan_present], DEVPRESENT[i]);
                                         simulator->fan_present = i;
+					device_present(simulator->fan_address, i);
                                         break;
                                     }
                                 }
@@ -1438,6 +1445,7 @@
                                         if (simulator->light_present != i)
                                             syslog(LOG_NOTICE, "Simulator %s light_present %s to %s", simulator->uuid, DEVPRESENT[simulator->light_present], DEVPRESENT[i]);
                                         simulator->light_present = i;
+					device_present(simulator->light_address, i);
                                         break;
                                     }
                                 }

mercurial