eclipse / paho.mqtt-sn.embedded-c

Paho C MQTT-SN gateway and libraries for embedded systems. Paho is an Eclipse IoT project.
https://eclipse.org/paho
Other
315 stars 178 forks source link

BugFix of #76 and #77 #78

Closed ty4tw closed 7 years ago

ty4tw commented 7 years ago

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