ModbusThread probably gets init messages in mToModbusQueue and after processing it retries again very fast. Do not retry after incoming message we should respect idleWaitDuration in this case.
If modbus network is connected then there are repetitive Waiting for mqtt network to become online messages until MsgMqttNetworkState arrives.
With nothing connected to serial port:
ModbusThread probably gets init messages in mToModbusQueue and after processing it retries again very fast. Do not retry after incoming message we should respect idleWaitDuration in this case.
If modbus network is connected then there are repetitive
Waiting for mqtt network to become online
messages untilMsgMqttNetworkState
arrives.