MQTTClient
Dependents: IoTGateway_Basic test
Revision 7:c12d2bfe40e2, committed 2012-04-04
- Comitter:
- SomeRandomBloke
- Date:
- Wed Apr 04 20:59:13 2012 +0000
- Parent:
- 6:734e384f72c3
- Child:
- 8:f7afec229461
- Commit message:
Changed in this revision
MQTTClient.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/MQTTClient.cpp Wed Mar 21 21:58:35 2012 +0000 +++ b/MQTTClient.cpp Wed Apr 04 20:59:13 2012 +0000 @@ -206,10 +206,11 @@ open_session(id); /*Wait server notice of open sesion*/ + i = 0; while (!sessionOpened) { Net::poll(); wait(1); - if (!connected) { + if (!connected || ++i >30) { break; } printf("Wait for session..\r\n");