fix iot_app

This commit is contained in:
anlicheng 2023-09-25 16:50:17 +08:00
parent 298e615794
commit cc10502a58

View File

@ -13,21 +13,18 @@
start(_StartType, _StartArgs) -> start(_StartType, _StartArgs) ->
io:setopts([{encoding, unicode}]), io:setopts([{encoding, unicode}]),
%%
start_mnesia(),
%% mnesia
%% %%
erlang:system_flag(fullsweep_after, 16), erlang:system_flag(fullsweep_after, 16),
{ok, SupPid} = iot_sup:start_link(),
%%
start_mnesia(),
%% udp服务 %% udp服务
start_udp_server(), start_udp_server(),
%% http服务 %% http服务
start_http_server(), start_http_server(),
%% {ok, SupPid}.
ok = hackney_pool:start_pool(influx_pool, [{timeout, 150000}, {max_connections, 100}]),
iot_sup:start_link().
stop(_State) -> stop(_State) ->
ok. ok.