publish timeout=1 minute #326
Answered
by
TwistedTwigleg
AbdullahGaw
asked this question in
Q&A
-
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.
Answered by
TwistedTwigleg
Jun 5, 2023
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.
0 replies
Answer selected by
AbdullahGaw
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to 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
configureMQTTOperationTimeout(60)
should set it to 60 seconds.