An API for using MQTT over multiple transports
Dependencies:
FP
MQTTPacket
Dependents:
Cellular_HelloMQTT
IoTStarterKit
GSwifiInterface_HelloMQTT
IBMIoTClientEthernetExample
... more
9 comments:
Tobias, I think you are correct about this. Sorry for the delayed reply.
Hello,
Even i am experiencing the same issue, is this issue resolved ?
cheers
Rao
I tried it today. Issue still persists.
It works well with MBED version 2
However if you use MBED version 5 core you should to set your custom interface/class I/O functions as "non blocking".
bhaktatomas
#
10 Oct 2017
Hello Ian Craggs, is this normal, that Client.Yield is waiting until message will come and not for timeout?
I'm trying to send KeepAlive message (so MQTT Client won't disconnect from MQTT Server) every 2 seconds.
But Yield does not timeout, instead it's waiting for new message. So after minute MQTT Client disconnects.
while(1) {
rc = client.publish(systemTopic, message);
client.yield(2000);
}
Thank you!
I have the same problem. Find a solution to keep always active while waiting to receive.
Thank you
Hello, is there any new progress on this? If calling yield(...), the thread waits indefinitely. This means if no message arrives within a few minutes, the connection closes, because apparently no PINGREQ (keepalive) packets are sent (even if keepAliveInterval property is set in the connectData).
adamheinrich
#
30 Oct 2018
Hi, I had similar issue. Using approach from MQTTSocket.h (handling socket timeouts manually) worked to me.
Hello,is there a solution on this problem,the library works smooth but the yield problem persists.Mister Craggs we need your help.
Tobias, I think you are correct about this. Sorry for the delayed reply.