This commit is contained in:
anlicheng 2025-05-20 15:18:20 +08:00
parent 3ab07c4fe3
commit afaccd9330

View File

@ -29,8 +29,6 @@
-export([device_offline/1, device_online/1]).
-export([send_metric_data/4, request_config/0, send_event/2, controller_process/1, subscribe/1]).
-export([test/0]).
%% gen_server callbacks
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
@ -44,9 +42,6 @@
controller_process :: pid() | undefined
}).
test() ->
start_link(<<"service1234">>, "localhost", 18088).
-spec controller_process(ControllerPid :: pid()) -> ok.
controller_process(ControllerPid) when is_pid(ControllerPid) ->
gen_server:call(?MODULE, {controller_process, ControllerPid}).