This commit is contained in:
Ery Lee 2015-01-06 11:50:53 +08:00
parent fdc69f6ea6
commit 1c8ac49b12
1 changed files with 4 additions and 3 deletions

View File

@ -112,7 +112,8 @@ handle_request(?CONNECT,
end end
end, end,
lager:info("recv conn...:~p", [ReturnCode]), lager:info("recv conn...:~p", [ReturnCode]),
send_frame(Sock, #mqtt_frame{ fixed = #mqtt_frame_fixed{ type = ?CONNACK}, send_frame(Sock, #mqtt_frame{
fixed = #mqtt_frame_fixed{ type = ?CONNACK },
variable = #mqtt_frame_connack{ variable = #mqtt_frame_connack{
return_code = ReturnCode }}), return_code = ReturnCode }}),
{ok, State1}; {ok, State1};