1.Return CONNACK instead of the broker when the gateway receives CONNECT
while the client is Sleep or Awake mode.
2.Define the max size of a que for PUBLISH while the client state is
Asleep mode. Despose packets when the que is full of packets.
3.Return PUBACK or PUBREL to the broker when the client is Asleep or
Awake.
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
error occurs.
Do not store the length of packet into rc.
If the packet is incorrect, skip the processing that follows.
Bugfix: Print out the value of TopicId in SUBACK and UNSUBACK.
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>