publish timeout=1 minute #326
-
I have IoT Device that publishes to MQTT sometimes the processor takes longer time to publish data and it times out, while other times it works perfectly given the same amount of data. I was wondering if there is a way to change the publish timeout to a minute more or less. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think setting configureMQTTOperationTimeout should allow you to set the operation timeout, in seconds, to a higher value. By default, it appears to be set to 5 seconds, so calling |
Beta Was this translation helpful? Give feedback.
I think setting configureMQTTOperationTimeout should allow you to set the operation timeout, in seconds, to a higher value. By default, it appears to be set to 5 seconds, so calling
configureMQTTOperationTimeout(60)
should set it to 60 seconds.