change poll rate on modbus

This commit is contained in:
2022-02-11 18:22:32 +01:00
parent c4fe5df4af
commit f89ea0bde9

4
main.c
View File

@@ -243,8 +243,8 @@ int main()
// mqtt_pub(&mqtt_client, "/Filamentanlage/04_Messmodul/state/uptime", msg, strlen(msg)); // mqtt_pub(&mqtt_client, "/Filamentanlage/04_Messmodul/state/uptime", msg, strlen(msg));
//} //}
#endif #endif
if(millis() - timer_modbus_poll > 1000){ if(millis() - timer_modbus_poll > 200){
timer_modbus_poll += 1000; timer_modbus_poll += 200;
do_kraftsensor(); do_kraftsensor();
#if PLC_MQTT_ENABLED #if PLC_MQTT_ENABLED
send_abzug_speed(); send_abzug_speed();