An API for using MQTT over multiple transports
Dependents: Water_Monitor_clone_v1 Cloud_IBM_MbedOS ble-star-mbed
Fork of MQTT by
Diff: MQTTClient.h
- Revision:
- 60:0534b5d3c941
- Parent:
- 57:3513ee54ebb4
- Child:
- 61:688f195846f1
--- 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: