Handling MQTT read failure and send buffer length

This commit is contained in:
baoshi 2016-07-05 21:37:47 +08:00
parent 15964efc0f
commit 09a5ec062a
2 changed files with 21 additions and 13 deletions

View file

@ -27,7 +27,7 @@
enum QoS { QOS0, QOS1, QOS2 };
// all failure return codes must be negative
enum returnCode {DISCONNECTED = -3, BUFFER_OVERFLOW = -2, FAILURE = -1, SUCCESS = 0 };
enum returnCode {READ_ERROR = -4, DISCONNECTED = -3, BUFFER_OVERFLOW = -2, FAILURE = -1, SUCCESS = 0 };
void NewTimer(Timer*);