Official reference client implementation for Cumulocity SmartREST on u-blox C027.

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Vincent Wochnik

Files at this revision

API Documentation at this revision

Comitter:
xinlei
Date:
Mon Jun 01 13:01:11 2015 +0000
Parent:
126:e1fcf720c63a
Child:
128:fc63f2b5abe2
Commit message:
polling: timeout for long polling set to 610 seconds

Changed in this revision

operation/PollThread.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/operation/PollThread.cpp	Mon Jun 01 12:56:41 2015 +0000
+++ b/operation/PollThread.cpp	Mon Jun 01 13:01:11 2015 +0000
@@ -44,7 +44,7 @@
 {
         int l = snprintf(buf2, sizeof(buf2), "83,%s\r\n", bayeuxId);
         l = snprintf(buf, sizeof(buf), fmtSmartRest, uri, l, buf2);
-        sock.setBlocking(300000); // Timeout after 5 minutes
+        sock.setBlocking(610000); // Timeout after 10m:10s
         _volSend += l;
         aInfo("[SEND] poll: %d\n", _volSend);
         l = sock.sendAndReceive(buf, l, sizeof(buf));