|
|
@ -389,7 +389,6 @@ def gen_connect(client_id, clean_session=True, keepalive=60, username=None, pass
|
|
|
|
|
|
|
|
|
|
|
|
def gen_connack(flags=0, rc=0, proto_ver=4, properties=""):
|
|
|
|
def gen_connack(flags=0, rc=0, proto_ver=4, properties=""):
|
|
|
|
if proto_ver == 5:
|
|
|
|
if proto_ver == 5:
|
|
|
|
properties += mqtt5_props.gen_byte_prop(mqtt5_props.PROP_SHARED_SUB_AVAILABLE, 0)
|
|
|
|
|
|
|
|
properties = mqtt5_props.prop_finalise(properties)
|
|
|
|
properties = mqtt5_props.prop_finalise(properties)
|
|
|
|
|
|
|
|
|
|
|
|
packet = struct.pack('!BBBB', 32, 2+len(properties), flags, rc) + properties
|
|
|
|
packet = struct.pack('!BBBB', 32, 2+len(properties), flags, rc) + properties
|
|
|
|