mqttsn.h File Reference

Generic MQTT-SN definitions. More...

Detailed Description

Generic MQTT-SN definitions.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file mqttsn.h.

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MQTTSN_DEFAULT_PORT   (1883U)
 Default UDP port for MQTT-SN servers.
 

Enumerations

enum  {
  MQTTSN_DUP = 0x80, MQTTSN_QOS_MASK = 0x60, MQTTSN_QOS_2 = 0x40, MQTTSN_QOS_1 = 0x20,
  MQTTSN_QOS_0 = 0x00, MQTTSN_RETAIN = 0x10, MQTTSN_WILL = 0x08, MQTTSN_CS = 0x04,
  MQTTSN_TIT_MASK = 0x03, MQTTSN_TIT_SHORT = 0x02, MQTTSN_TIT_PREDEF = 0x01, MQTTSN_TIT_NORMAL = 0x00
}
 MQTT-SN flags. More...
 
enum  {
  MQTTSN_ADVERTISE = 0x00, MQTTSN_SEARCHGW = 0x01, MQTTSN_GWINFO = 0x02, MQTTSN_CONNECT = 0x04,
  MQTTSN_CONNACK = 0x05, MQTTSN_WILLTOPICREQ = 0x06, MQTTSN_WILLTOPIC = 0x07, MQTTSN_WILLMSGREQ = 0x08,
  MQTTSN_WILLMSG = 0x09, MQTTSN_REGISTER = 0x0a, MQTTSN_REGACK = 0x0b, MQTTSN_PUBLISH = 0x0c,
  MQTTSN_PUBACK = 0x0d, MQTTSN_PUBCOMP = 0x0e, MQTTSN_PUBREC = 0x0f, MQTTSN_PUBREL = 0x10,
  MQTTSN_SUBSCRIBE = 0x12, MQTTSN_SUBACK = 0x13, MQTTSN_UNSUBSCRIBE = 0x14, MQTTSN_UNSUBACK = 0x15,
  MQTTSN_PINGREQ = 0x16, MQTTSN_PINGRESP = 0x17, MQTTSN_DISCONNECT = 0x18, MQTTSN_WILLTOPICUPD = 0x1a,
  MQTTSN_WILLTOPICRESP = 0x1b, MQTTSN_WILLMSGUPD = 0x1c, MQTTSN_WILLMSGRESP = 0x1d
}
 MQTT-SN message types. More...
 
enum  { MQTTSN_ACCEPTED = 0x00, MQTTSN_REJ_CONGESTION = 0x01, MQTTSN_REJ_INV_TOPIC_ID = 0x02, MQTTSN_REJ_NOTSUP = 0x03 }
 MQTT-SN return codes. More...