The Cayenne MQTT mbed Library provides functions to easily connect to the Cayenne IoT project builder.

Fork of Cayenne-MQTT-mbed by myDevicesIoT

Revision:
11:532406b58e8f
Parent:
0:09ef59d2d0f7
diff -r 3d8c7c89d47a -r 532406b58e8f src/CayenneMQTTClient/NetworkInterface.h
--- a/src/CayenneMQTTClient/NetworkInterface.h	Wed Oct 26 17:38:50 2016 -0600
+++ b/src/CayenneMQTTClient/NetworkInterface.h	Fri Oct 28 13:38:43 2016 -0600
@@ -28,7 +28,7 @@
 	* @param[out] buffer Buffer that receives the data
 	* @param[in] len Buffer length
 	* @param[in] timeout_ms Timeout for the read operation, in milliseconds
-	* @return 1 for success, any other value for error
+	* @return Number of bytes read, or a negative value if there was an error
 	*/
 	virtual int read(unsigned char* buffer, int len, int timeout_ms) = 0;