Closed zhy2on closed 5 months ago
{ 'name': 'MQTT', 'header': { ... }, 'type': 'CONNECT', 'connect': { 'proto_name': ..., 'mqtt_level': ..., 'usernameflag': ..., 'passwordflag': ..., 'willretainflag': ..., 'willQOSflag': ..., 'willflag': ..., 'cleansession': ..., 'reserved': ..., 'keep_alive': ..., 'clientId': ..., 'willtopic': ..., # willflag가 True일 때만 존재 'willmsg': ..., # willflag가 True일 때만 존재 'username': ..., # usernameflag가 True일 때만 존재 'password': ..., # passwordflag가 True일 때만 존재 } }
{ 'name': 'MQTT', 'header': { ... }, 'type': 'CONNACK', 'connack': { 'ackflag': ..., 'return_code': ..., } }
{ 'name': 'MQTT', 'header': { ... }, 'type': 'PUBLISH', 'publish': { 'topic': ..., 'msgid': ..., 'msgvalue': ..., } }
{ 'name': 'MQTT', 'header': { ... }, 'type': 'PUBACK', 'puback': { 'msgid': ..., } }
{ 'name': 'MQTT', 'header': { ... }, 'type': 'PUBREC', 'pubrec': { 'msgid': ..., } }
{ 'name': 'MQTT', 'header': { ... }, 'type': 'PUBREL', 'pubrel': { 'msgid': ..., } }
{ 'name': 'MQTT', 'header': { ... }, 'type': 'PUBCOMP', 'pubcomp': { 'msgid': ..., } }
{'name': 'MQTT', 'header': { ... }, 'type': 'CONNECT', 'connect': { ... }}
{'name': 'MQTT', 'header': { ... }, 'type': 'CONNACK', 'connack': { ... }}
{'name': 'MQTT', 'header': { ... }, 'type': 'PUBLISH', 'publish': { ... }}
{'name': 'MQTT', 'header': { ... }, 'type': 'PUBACK', 'puback': { ... }}
{'name': 'MQTT', 'header': { ... }, 'type': 'PUBREC', 'pubrec': { ... }}
{'name': 'MQTT', 'header': { ... }, 'type': 'PUBREL', 'pubrel': { ... }}
{'name': 'MQTT', 'header': { ... }, 'type': 'PUBCOMP', 'pubcomp': { ... }}
CONNECT 패킷
CONNACK 패킷
PUBLISH 패킷
PUBACK 패킷
PUBREC 패킷
PUBREL 패킷
PUBCOMP 패킷
{'name': 'MQTT', 'header': { ... }, 'type': 'CONNECT', 'connect': { ... }}
{'name': 'MQTT', 'header': { ... }, 'type': 'CONNACK', 'connack': { ... }}
{'name': 'MQTT', 'header': { ... }, 'type': 'PUBLISH', 'publish': { ... }}
{'name': 'MQTT', 'header': { ... }, 'type': 'PUBACK', 'puback': { ... }}
{'name': 'MQTT', 'header': { ... }, 'type': 'PUBREC', 'pubrec': { ... }}
{'name': 'MQTT', 'header': { ... }, 'type': 'PUBREL', 'pubrel': { ... }}
{'name': 'MQTT', 'header': { ... }, 'type': 'PUBCOMP', 'pubcomp': { ... }}