This commit is contained in:
anlicheng 2025-09-26 16:25:53 +08:00
parent 0da6bb543c
commit 634b57dc13

View File

@ -68,7 +68,7 @@ get_alias_name(HostId0) when is_integer(HostId0) ->
binary_to_atom(<<"iot_host_id:", HostId/binary>>). binary_to_atom(<<"iot_host_id:", HostId/binary>>).
%% %%
-spec handle(Pid :: pid(), Packet :: {atom(), binary()} | {atom(), {binary(), binary()}}) -> no_return(). -spec handle(Pid :: pid(), Packet :: {atom(), any()}) -> no_return().
handle(Pid, Packet) when is_pid(Pid) -> handle(Pid, Packet) when is_pid(Pid) ->
gen_statem:cast(Pid, {handle, Packet}). gen_statem:cast(Pid, {handle, Packet}).