Module: EventMachine::MQTTSN

Defined in:
lib/em/mqtt-sn/version.rb,
lib/em/mqtt-sn/packet.rb,
lib/em/mqtt-sn.rb

Defined Under Namespace

Classes: Exception, Gateway, GatewayHandler, Packet, ProtocolException, ServerConnection

Constant Summary collapse

VERSION =
"0.0.2"
PACKET_TYPES =

An enumeration of the MQTT-SN packet types

{
#       0x00 => EventMachine::MQTTSN::Packet::Advertise,
#       0x01 => EventMachine::MQTTSN::Packet::Searchgw,
#       0x02 => EventMachine::MQTTSN::Packet::Gwinfo,
    0x04 => EventMachine::MQTTSN::Packet::Connect,
    0x05 => EventMachine::MQTTSN::Packet::Connack,
#       0x06 => EventMachine::MQTTSN::Packet::Willtopicreq,
#       0x07 => EventMachine::MQTTSN::Packet::Willtopic,
#       0x08 => EventMachine::MQTTSN::Packet::Willmsgreq,
#       0x09 => EventMachine::MQTTSN::Packet::Willmsg,
    0x0a => EventMachine::MQTTSN::Packet::Register,
    0x0b => EventMachine::MQTTSN::Packet::Regack,
    0x0c => EventMachine::MQTTSN::Packet::Publish,
#       0x0d => EventMachine::MQTTSN::Packet::Puback,
#       0x0e => EventMachine::MQTTSN::Packet::Pubcomp,
#       0x0f => EventMachine::MQTTSN::Packet::Pubrec,
#       0x10 => EventMachine::MQTTSN::Packet::Pubrel,
    0x12 => EventMachine::MQTTSN::Packet::Subscribe,
    0x13 => EventMachine::MQTTSN::Packet::Suback,
#       0x14 => EventMachine::MQTTSN::Packet::Unsubscribe,
#       0x15 => EventMachine::MQTTSN::Packet::Unsuback,
    0x16 => EventMachine::MQTTSN::Packet::Pingreq,
    0x17 => EventMachine::MQTTSN::Packet::Pingresp,
    0x18 => EventMachine::MQTTSN::Packet::Disconnect,
#       0x1a => EventMachine::MQTTSN::Packet::Willtopicupd,
#       0x1b => EventMachine::MQTTSN::Packet::Willtopicresp,
#       0x1c => EventMachine::MQTTSN::Packet::Willmsgupd,
#       0x1d => EventMachine::MQTTSN::Packet::Willmsgresp,
}
DEFAULT_HOST =
'localhost'
DEFAULT_PORT =
1883