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

Revision:
60:0534b5d3c941
Parent:
57:3513ee54ebb4
Child:
61:688f195846f1
diff -r 9cff7b6bbd01 -r 0534b5d3c941 MQTTClient.h
--- 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: