Classes | Functions | Variables
MQTTV5 Namespace Reference

Classes

class  Acks
 
class  Auths
 
class  Connacks
 
class  Connects
 
class  Disconnects
 
class  FixedHeaders
 
class  MalformedPacket
 
class  MQTTException
 
class  Packets
 
class  PacketTypes
 
class  Pingreqs
 
class  Pingresps
 
class  Properties
 
class  ProtocolError
 
class  Pubacks
 
class  Pubcomps
 
class  Publishes
 
class  Pubrecs
 
class  Pubrels
 
class  ReasonCodes
 
class  Subacks
 
class  SubscribeOptions
 
class  Subscribes
 
class  Unsubacks
 
class  Unsubscribes
 
class  UnsubSubacks
 
class  VBIs
 

Functions

def decode (buffer)
 
def encode (x)
 
def getPacket (aSocket)
 
def PacketType (byte)
 
def readBytes (buffer)
 
def readInt16 (buf)
 
def readInt32 (buf)
 
def readUTF (buffer, maxlen)
 
def unpackPacket (buffer, maximumPacketSize=MAX_PACKET_SIZE)
 
def writeBytes (buffer)
 
def writeInt16 (length)
 
def writeInt32 (length)
 
def writeUTF (data)
 

Variables

list classes
 
 logger = logging.getLogger('MQTTV5')
 
int MAX_PACKET_SIZE = 2
 
int MAX_PACKETID = 2
 

Detailed Description

*******************************************************************
  Copyright (c) 2013, 2018 IBM Corp.

  All rights reserved. This program and the accompanying materials
  are made available under the terms of the Eclipse Public License v2.0
  and Eclipse Distribution License v1.0 which accompany this distribution.

  The Eclipse Public License is available at
     https://www.eclipse.org/legal/epl-2.0/
  and the Eclipse Distribution License is available at
    http://www.eclipse.org/org/documents/edl-v10.php.

  Contributors:
     Ian Craggs - initial implementation and/or documentation
     Ian Craggs - take MQTT 3.1.1 and create MQTT 5.0 version
*******************************************************************

Function Documentation

def MQTTV5.decode (   buffer)
static
  Get the value of a multi-byte integer from a buffer
  Return the value, and the number of bytes used.

  [MQTT-1.5.5-1] the encoded value MUST use the minimum number of bytes necessary to represent the value

Definition at line 247 of file MQTTV5.py.

def MQTTV5.encode (   x)
static
  Convert an integer 0 <= x <= 268435455 into multi-byte format.
  Returns the buffer convered from the integer.

Definition at line 229 of file MQTTV5.py.

def MQTTV5.getPacket (   aSocket)

Definition at line 267 of file MQTTV5.py.

def MQTTV5.PacketType (   byte)
  Retrieve the message type from the first byte of the fixed header.

Definition at line 84 of file MQTTV5.py.

def MQTTV5.readBytes (   buffer)

Definition at line 393 of file MQTTV5.py.

def MQTTV5.readInt16 (   buf)

Definition at line 351 of file MQTTV5.py.

def MQTTV5.readInt32 (   buf)

Definition at line 362 of file MQTTV5.py.

def MQTTV5.readUTF (   buffer,
  maxlen 
)

Definition at line 369 of file MQTTV5.py.

def MQTTV5.unpackPacket (   buffer,
  maximumPacketSize = MAX_PACKET_SIZE 
)

Definition at line 1458 of file MQTTV5.py.

def MQTTV5.writeBytes (   buffer)

Definition at line 390 of file MQTTV5.py.

def MQTTV5.writeInt16 (   length)

Definition at line 348 of file MQTTV5.py.

def MQTTV5.writeInt32 (   length)

Definition at line 354 of file MQTTV5.py.

def MQTTV5.writeUTF (   data)

Definition at line 365 of file MQTTV5.py.

Variable Documentation

list MQTTV5.classes
Initial value:
1 = [Connects, Connacks, Publishes, Pubacks, Pubrecs,
2  Pubrels, Pubcomps, Subscribes, Subacks, Unsubscribes,
3  Unsubacks, Pingreqs, Pingresps, Disconnects, Auths]

Definition at line 1454 of file MQTTV5.py.

MQTTV5.logger = logging.getLogger('MQTTV5')

Definition at line 29 of file MQTTV5.py.

int MQTTV5.MAX_PACKET_SIZE = 2

Definition at line 42 of file MQTTV5.py.

int MQTTV5.MAX_PACKETID = 2

Definition at line 43 of file MQTTV5.py.



plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:51