change poll rate on modbus
This commit is contained in:
4
main.c
4
main.c
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user