Module: MQTT::SN
- Defined in:
- lib/mqtt.rb,
lib/mqtt/sn/packet.rb
Overview
MQTT-SN
Defined Under Namespace
Classes: Packet, ProtocolException
Constant Summary collapse
- DEFAULT_PORT =
Default port number for unencrypted connections
1883
- PACKET_TYPES =
An enumeration of the MQTT-SN packet types
{ 0x00 => MQTT::SN::Packet::Advertise, 0x01 => MQTT::SN::Packet::Searchgw, 0x02 => MQTT::SN::Packet::Gwinfo, 0x04 => MQTT::SN::Packet::Connect, 0x05 => MQTT::SN::Packet::Connack, 0x06 => MQTT::SN::Packet::Willtopicreq, 0x07 => MQTT::SN::Packet::Willtopic, 0x08 => MQTT::SN::Packet::Willmsgreq, 0x09 => MQTT::SN::Packet::Willmsg, 0x0a => MQTT::SN::Packet::Register, 0x0b => MQTT::SN::Packet::Regack, 0x0c => MQTT::SN::Packet::Publish, 0x0d => MQTT::SN::Packet::Puback, 0x0e => MQTT::SN::Packet::Pubcomp, 0x0f => MQTT::SN::Packet::Pubrec, 0x10 => MQTT::SN::Packet::Pubrel, 0x12 => MQTT::SN::Packet::Subscribe, 0x13 => MQTT::SN::Packet::Suback, 0x14 => MQTT::SN::Packet::Unsubscribe, 0x15 => MQTT::SN::Packet::Unsuback, 0x16 => MQTT::SN::Packet::Pingreq, 0x17 => MQTT::SN::Packet::Pingresp, 0x18 => MQTT::SN::Packet::Disconnect, 0x1a => MQTT::SN::Packet::Willtopicupd, 0x1b => MQTT::SN::Packet::Willtopicresp, 0x1c => MQTT::SN::Packet::Willmsgupd, 0x1d => MQTT::SN::Packet::Willmsgresp }