An API for using MQTT over multiple transports

Dependencies:   FP MQTTPacket

Dependents:   Water_Monitor_clone_v1 Cloud_IBM_MbedOS ble-star-mbed

Fork of MQTT by MQTT

Files at this revision

API Documentation at this revision

Comitter:
mapellil
Date:
Tue Nov 14 13:43:19 2017 +0000
Parent:
59:9cff7b6bbd01
Child:
61:688f195846f1
Commit message:
added NSAPI_ERROR_WOULD_BLOCK handling

Changed in this revision

MQTTClient.h Show annotated file Show diff for this revision Revisions of this file
--- a/MQTTClient.h	Thu Nov 02 12:12:41 2017 +0000
+++ b/MQTTClient.h	Tue Nov 14 13:43:19 2017 +0000
@@ -590,7 +590,8 @@
             // no more data to read, unrecoverable. Or read packet fails due to unexpected network error
             rc = packet_type;
             goto exit;
-        case 0: // timed out reading packet
+        case NSAPI_ERROR_WOULD_BLOCK:
+        case NSAPI_ERROR_OK: // timed out reading packet            
             break;
         case CONNACK:
         case PUBACK: