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) ->
io:setopts([{encoding, unicode}]),
%%
start_mnesia(),
%% mnesia
%%
erlang:system_flag(fullsweep_after, 16),
{ok, SupPid} = iot_sup:start_link(),
%%
start_mnesia(),
%% udp服务
start_udp_server(),
%% http服务
start_http_server(),
%%
ok = hackney_pool:start_pool(influx_pool, [{timeout, 150000}, {max_connections, 100}]),
iot_sup:start_link().
{ok, SupPid}.
stop(_State) ->
ok.