TMS MQTT MQTT_DEFAULT_SENDONEPACKETPERCYCLE

sending a lot of messages is very slow ... i figured out that it send messages and make a delay 10ms between every message.

i found this MQTT_DEFAULT_SENDONEPACKETPERCYCLE

if i set it to false the componet does not work anymore.

Hi,

Try setting TTMSMQTTClient.CommThreadInterval to zero.

This is the easiest solution to improve the performance without any change in your code. If you still need faster performance then consider using qosAtMostOnce as QoS when you publish messages.

Setting a different TTMSMQTTClient.SendOnePacketPerCycle value is only meant for some special configurations.

thanks for the hint ...
to me it looks like they have a problem in the codes ..
and the added MQTT_DEFAULT_SENDONEPACKETPERCYCLE to cover it.

kind of quick and dirty patch ...

TMS SHOLD FIX IT CORRECTLY

We will investigate but take in account that this code base is used on a wide range of operating systems & devices in many different scenarios. Requirements on a low-power Raspberry Pi app low bandwidth communication can be quite different from a Windows desktop high bandwidth communication and we tried to provide settings to accommodate for as much as possible scenarios.