MyReposirory

Dependencies:   FP MQTTPacket

Fork of MQTT by Irayya Mathad

Revision:
48:c11d59168c0a
Parent:
44:c299463ae853
--- a/MQTTClient.h	Sat Oct 03 10:53:36 2015 +0000
+++ b/MQTTClient.h	Thu May 25 05:16:45 2017 +0000
@@ -70,7 +70,8 @@
 
     int getNext()
     {
-        return next = (next == MAX_PACKET_ID) ? 1 : ++next;
+       return next = (next == MAX_PACKET_ID) ? 1 : next;
+     
     }
 
 private: