Removed blocking keepalive code
Dependencies: EthernetInterface mbed-rtos
Fork of niMQTT by
Revision 9:8e43b5519a4a, committed 2013-10-22
- Comitter:
- tobyjaffey
- Date:
- Tue Oct 22 20:37:27 2013 +0000
- Parent:
- 8:438958bb9df3
- Commit message:
- Removed wait for keepalive, was stalling operation
Changed in this revision
niMQTT.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 438958bb9df3 -r 8e43b5519a4a niMQTT.cpp --- a/niMQTT.cpp Tue Aug 13 13:36:05 2013 +0000 +++ b/niMQTT.cpp Tue Oct 22 20:37:27 2013 +0000 @@ -342,8 +342,8 @@ while (connected) { if (debug) printf("New loop in thread worker\r\n"); recv(); - Thread::wait(KEEP_ALIVE*100); // KEEP_ALIVE / 10 in seconds - if (!packet_sent) pingreq(); +// Thread::wait(KEEP_ALIVE*100); // KEEP_ALIVE / 10 in seconds +// if (!packet_sent) pingreq(); packet_sent = false; } }