diff --git a/apps/iot/src/iot_host.erl b/apps/iot/src/iot_host.erl index daefc87..47a0157 100644 --- a/apps/iot/src/iot_host.erl +++ b/apps/iot/src/iot_host.erl @@ -68,7 +68,7 @@ get_alias_name(HostId0) when is_integer(HostId0) -> 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) -> gen_statem:cast(Pid, {handle, Packet}).