change poll rate on modbus

master
Eggert Jung 4 years ago
parent c4fe5df4af
commit f89ea0bde9

@ -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();