fix
This commit is contained in:
parent
3ab07c4fe3
commit
afaccd9330
@ -29,8 +29,6 @@
|
|||||||
-export([device_offline/1, device_online/1]).
|
-export([device_offline/1, device_online/1]).
|
||||||
-export([send_metric_data/4, request_config/0, send_event/2, controller_process/1, subscribe/1]).
|
-export([send_metric_data/4, request_config/0, send_event/2, controller_process/1, subscribe/1]).
|
||||||
|
|
||||||
-export([test/0]).
|
|
||||||
|
|
||||||
%% gen_server callbacks
|
%% gen_server callbacks
|
||||||
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
|
-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
|
controller_process :: pid() | undefined
|
||||||
}).
|
}).
|
||||||
|
|
||||||
test() ->
|
|
||||||
start_link(<<"service1234">>, "localhost", 18088).
|
|
||||||
|
|
||||||
-spec controller_process(ControllerPid :: pid()) -> ok.
|
-spec controller_process(ControllerPid :: pid()) -> ok.
|
||||||
controller_process(ControllerPid) when is_pid(ControllerPid) ->
|
controller_process(ControllerPid) when is_pid(ControllerPid) ->
|
||||||
gen_server:call(?MODULE, {controller_process, ControllerPid}).
|
gen_server:call(?MODULE, {controller_process, ControllerPid}).
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user