fix(gw_gbt32960): undefined type `emqx_gbt32960_frame:frame()`
This commit is contained in:
parent
aef5b17ed5
commit
a218ff6dd8
|
@ -4,6 +4,8 @@
|
||||||
|
|
||||||
-record(frame, {cmd, ack, vin, encrypt, length, data, check, rawdata}).
|
-record(frame, {cmd, ack, vin, encrypt, length, data, check, rawdata}).
|
||||||
|
|
||||||
|
-type frame() :: #frame{}.
|
||||||
|
|
||||||
-define(CMD(CmdType), #frame{
|
-define(CMD(CmdType), #frame{
|
||||||
cmd = CmdType,
|
cmd = CmdType,
|
||||||
ack = ?ACK_IS_CMD
|
ack = ?ACK_IS_CMD
|
||||||
|
|
|
@ -67,7 +67,6 @@
|
||||||
| {close, Reason :: atom()}.
|
| {close, Reason :: atom()}.
|
||||||
|
|
||||||
-type replies() :: reply() | [reply()].
|
-type replies() :: reply() | [reply()].
|
||||||
-type frame() :: emqx_gbt32960_frame:frame().
|
|
||||||
|
|
||||||
-define(TIMER_TABLE, #{
|
-define(TIMER_TABLE, #{
|
||||||
alive_timer => keepalive,
|
alive_timer => keepalive,
|
||||||
|
@ -203,7 +202,7 @@ setting_peercert_infos(Peercert, ClientInfo) ->
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
%% Handle incoming packet
|
%% Handle incoming packet
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
-spec handle_in(emqx_gbt32960_frame:frame() | {frame_error, any()}, channel()) ->
|
-spec handle_in(frame() | {frame_error, any()}, channel()) ->
|
||||||
{ok, channel()}
|
{ok, channel()}
|
||||||
| {ok, replies(), channel()}
|
| {ok, replies(), channel()}
|
||||||
| {shutdown, Reason :: term(), channel()}
|
| {shutdown, Reason :: term(), channel()}
|
||||||
|
|
Loading…
Reference in New Issue