fix config

This commit is contained in:
anlicheng 2026-01-08 15:39:35 +08:00
parent 336362c4e4
commit 6788964624
5 changed files with 22 additions and 23 deletions

View File

@ -8,7 +8,6 @@
sync, sync,
emqtt, emqtt,
jiffy, jiffy,
logger,
kernel, kernel,
stdlib stdlib
]}, ]},

View File

@ -36,14 +36,23 @@ init([]) ->
RegisterName = read_service_name(), RegisterName = read_service_name(),
ChildSpecs = [ ChildSpecs = [
#{ %#{
id => 'efka_client', % id => 'efka_client',
start => {'efka_client', start_link, [RegisterName, Host, Port]}, % start => {'efka_client', start_link, [RegisterName, Host, Port]},
restart => permanent, % restart => permanent,
shutdown => 2000, % shutdown => 2000,
type => worker, % type => worker,
modules => ['efka_client'] % modules => ['efka_client']
}, %},
%#{
% id => 'aircon_args',
% start => {'aircon_args', start_link, []},
% restart => permanent,
% shutdown => 2000,
% type => worker,
% modules => ['aircon_args']
%},
#{ #{
id => aircon_logger, id => aircon_logger,
@ -54,15 +63,6 @@ init([]) ->
modules => ['aircon_logger'] modules => ['aircon_logger']
}, },
#{
id => 'aircon_args',
start => {'aircon_args', start_link, []},
restart => permanent,
shutdown => 2000,
type => worker,
modules => ['aircon_args']
},
#{ #{
id => 'aircon_device_sup', id => 'aircon_device_sup',
start => {'aircon_device_sup', start_link, []}, start => {'aircon_device_sup', start_link, []},

View File

@ -4,11 +4,11 @@
{heartbeat_ticker, 120}, {heartbeat_ticker, 120},
{emqx_server, [ {emqx_server, [
{host, "39.98.184.67"}, {host, "118.178.229.213"},
{port, 1883}, {port, 1883},
{tcp_opts, []}, {tcp_opts, []},
{username, "test"}, {username, "aircon"},
{password, "test1234"}, {password, "A9K2rM8QxL7WZsP5D@B!3"},
{keepalive, 86400}, {keepalive, 86400},
{retry_interval, 5} {retry_interval, 5}
]}, ]},

View File

@ -2,7 +2,7 @@
{deps, [ {deps, [
{sync, ".*", {git, "https://github.com/rustyio/sync.git", {branch, "master"}}}, {sync, ".*", {git, "https://github.com/rustyio/sync.git", {branch, "master"}}},
{jiffy, ".*", {git, "https://github.com/davisp/jiffy.git", {tag, "1.1.1"}}}, {jiffy, ".*", {git, "https://github.com/davisp/jiffy.git", {tag, "1.1.1"}}},
{emqtt, ".*", {git, "https://gitea.s5s8.com/anlicheng/emqtt.git", {tag, "v1.0"}}} {emqtt, ".*", {git, "https://gitea.s5s8.com/anlicheng/emqtt.git", {tag, "v1.1"}}}
]}. ]}.
{relx, [{release, {aircon, "0.1.0"}, {relx, [{release, {aircon, "0.1.0"},

View File

@ -1,7 +1,7 @@
{"1.2.0", {"1.2.0",
[{<<"emqtt">>, [{<<"emqtt">>,
{git,"https://gitea.s5s8.com/anlicheng/emqtt.git", {git,"https://gitea.s5s8.com/anlicheng/emqtt.git",
{ref,"5111914a9b1b92b0b497f825c77bdd365e3989b0"}}, {ref,"c590588b16f887bd5e1151626090f28aae55099b"}},
0}, 0},
{<<"fs">>,{pkg,<<"fs">>,<<"6.1.1">>},1}, {<<"fs">>,{pkg,<<"fs">>,<<"6.1.1">>},1},
{<<"jiffy">>, {<<"jiffy">>,