Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: operation/PollThread.cpp
- Revision:
- 100:dbcd3bc51758
- Parent:
- 98:e369fc75c000
- Child:
- 105:c61f0d62b625
diff -r 47ea098f8a47 -r dbcd3bc51758 operation/PollThread.cpp --- a/operation/PollThread.cpp Thu May 07 13:56:19 2015 +0000 +++ b/operation/PollThread.cpp Fri May 08 12:19:57 2015 +0000 @@ -22,10 +22,10 @@ bool PollThread::subscribe() { - int l = snprintf(buf2, SMARRESTBODY_SIZE, "81,%s,/%s\r\n", bayeuxId, chn); + int l = snprintf(buf2, SMARRESTBODY_SIZE, "81,%s,%s\r\n", bayeuxId, chn); l = snprintf(buf, SMARTREST_SIZE, fmtSmartRest, uri, l, buf2); sock.set_blocking(false); - l = sock.sendOnly(buf, l, SMARTREST_SIZE); + l = sock.sendOnly(buf, l); return l>=0; }