|
|
@@ -321,6 +321,15 @@ end).
|
|
|
properties = #{}
|
|
|
}).
|
|
|
|
|
|
+%%--------------------------------------------------------------------
|
|
|
+%% MQTT Implementation Internal
|
|
|
+%%--------------------------------------------------------------------
|
|
|
+
|
|
|
+%% Propagate extra data in MQTT Packets
|
|
|
+%% Use it in properties and should never be serialized
|
|
|
+%% See also emqx_frame:serialize_property/3
|
|
|
+-define(MQTT_INTERNAL_EXTRA, 'internal_extra').
|
|
|
+
|
|
|
%%--------------------------------------------------------------------
|
|
|
%% MQTT Control Packet
|
|
|
%%--------------------------------------------------------------------
|
|
|
@@ -331,6 +340,9 @@ end).
|
|
|
#mqtt_packet_connect{}
|
|
|
| #mqtt_packet_connack{}
|
|
|
| #mqtt_packet_publish{}
|
|
|
+ %% QoS=1: PUBACK,
|
|
|
+ %% QoS=2: PUBREC, PUBREL, PUBCOMP
|
|
|
+ %% all used #mqtt_packet_puback{}
|
|
|
| #mqtt_packet_puback{}
|
|
|
| #mqtt_packet_subscribe{}
|
|
|
| #mqtt_packet_suback{}
|