mqtt/pdu.py
def encode(self):
        '''
        Encode and store a DISCONNECT control packet.
        '''
        header    = bytearray(2)
        header[0] = 0xE0
        self.encoded = header
        return str(header) if PY2 else bytes(header)
def encode(self):
        '''
        Encode and store a DISCONNECT control packet.
        '''
        header    = bytearray(2)
        header[0] = 0xE0
        self.encoded = header
        return str(header) if PY2 else bytes(header)
def encode ( self ) : header = bytearray ( 2 ) header [ 0 ] = 0xE0 self . encoded = header return str ( header ) if PY2 else bytes ( header )
Encode and store a DISCONNECT control packet.
Encode and store a DISCONNECT control packet .