Net::MQTT::Constants − Module to export constants for MQTT protocol
version 1.163170
use Net::MQTT::Constants;
Module to export constants for MQTT protocol.
Calculates the "remaining length" from the bytes in $data starting at the offset read from the scalar reference. The offset reference is subsequently incremented by the number of bytes processed.
Calculates the "remaining length" bytes from the length, $length, and returns the packed bytes as a string.
Returns a byte by unpacking it from $data starting at the offset read from the scalar reference. The offset reference is subsequently incremented by the number of bytes processed.
Returns a packed byte.
Returns a short (two bytes) by unpacking it from $data starting at the offset read from the scalar reference. The offset reference is subsequently incremented by the number of bytes processed.
Returns a packed short (two bytes).
Returns a string (short length followed by length bytes) by unpacking it from $data starting at the offset read from the scalar reference. The offset reference is subsequently incremented by the number of bytes processed.
Returns a packed string (length as a short and then the bytes of the string).
Returns a string describing the given QoS value.
Returns a string describing the given "message_type" value.
Returns a string representation of arbitrary data − as a string if it contains only printable characters or as a hex dump otherwise.
Returns a string describing the given "connect_return_code" value.
Mark Hindess <soft−[email protected]>
This software is copyright (c) 2014 by Mark Hindess.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.