fix serialise unsuback
This commit is contained in:
parent
3107c90ec9
commit
2972b1ee52
|
@ -33,7 +33,6 @@
|
||||||
%% API
|
%% API
|
||||||
-export([serialise/1]).
|
-export([serialise/1]).
|
||||||
|
|
||||||
|
|
||||||
serialise(#mqtt_packet{header = Header = #mqtt_packet_header{type = Type},
|
serialise(#mqtt_packet{header = Header = #mqtt_packet_header{type = Type},
|
||||||
variable = Variable,
|
variable = Variable,
|
||||||
payload = Payload}) ->
|
payload = Payload}) ->
|
||||||
|
@ -105,7 +104,7 @@ serialise_variable(?UNSUBSCRIBE, #mqtt_packet_unsubscribe{
|
||||||
packet_id = PacketId, topics = Topics }, undefined) ->
|
packet_id = PacketId, topics = Topics }, undefined) ->
|
||||||
{<<PacketId:16/big>>, serialise_topics(Topics)};
|
{<<PacketId:16/big>>, serialise_topics(Topics)};
|
||||||
|
|
||||||
serialise_variable(?UNSUBACK, #mqtt_packet_suback {packet_id = PacketId},
|
serialise_variable(?UNSUBACK, #mqtt_packet_unsuback{packet_id = PacketId},
|
||||||
undefined) ->
|
undefined) ->
|
||||||
{<<PacketId:16/big>>, <<>>};
|
{<<PacketId:16/big>>, <<>>};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue