You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
proto_deliver_ack(#message{qos = ?QOS_0}, Proto) ->
Proto;
proto_deliver_ack(#message{qos = ?QOS_1, headers = #{packet_id := PacketId}}, Proto) ->
case emqx_protocol:received(?PUBACK_PACKET(PacketId), Proto) of
{ok, NewProto} -> NewProto;
Other -> error(Other)
end;
proto_deliver_ack(#message{qos = ?QOS_2, headers = #{packet_id := PacketId}}, Proto) ->
case emqx_protocol:received(?PUBREC_PACKET(PacketId), Proto) of
{ok, NewProto} ->
case emqx_protocol:received(?PUBCOMP_PACKET(PacketId), NewProto) of
{ok, CurrentProto} -> CurrentProto;
Another -> error(Another)
end;
Other -> error(Other)
end.
but Websocket send message without packet_id in headers.
The text was updated successfully, but these errors were encountered:
WengangChen
changed the title
use Websocket to publish Qos1 message cause function_clause for emqx_coap subcriber
use Websocket to publish Qos1 message cause function_clause for emqx_coap subscriber
Jul 4, 2019
emqx_coap_mqtt_adapter.erl:
but Websocket send message without
packet_id
inheaders
.The text was updated successfully, but these errors were encountered: