emqx / emqx-sn

EMQX MQTT-SN Gateway
https://www.emqx.com
Apache License 2.0
30 stars 20 forks source link

fix(emqx_sn_gateway): Fix will message publish #169

Closed zmstone closed 3 years ago

zmstone commented 3 years ago

noticed this while fixing dialyzer warnings in dev/v5.0 branch in emqx project.

It seems to me that the first argument should be a #mqtt_packet{} record. i.e. the code prior to this change had the arguments in the wrong order.

I am however not quite sure if it should be clientid from state, or something else from the channel info to be used as the second arg.