send connack with State1
This commit is contained in:
parent
a46b0f6a75
commit
5d6a70afb2
|
@ -137,7 +137,7 @@ handle_packet(?CONNECT, Packet = #mqtt_packet {
|
||||||
end,
|
end,
|
||||||
send_packet( #mqtt_packet {
|
send_packet( #mqtt_packet {
|
||||||
header = #mqtt_packet_header { type = ?CONNACK },
|
header = #mqtt_packet_header { type = ?CONNACK },
|
||||||
variable = #mqtt_packet_connack{ return_code = ReturnCode }}, State ),
|
variable = #mqtt_packet_connack{ return_code = ReturnCode }}, State1 ),
|
||||||
{ok, State1};
|
{ok, State1};
|
||||||
|
|
||||||
handle_packet(?PUBLISH, Packet = #mqtt_packet {
|
handle_packet(?PUBLISH, Packet = #mqtt_packet {
|
||||||
|
|
Loading…
Reference in New Issue