From eaddd964ea9ce1d976801377f1b4c4228c61916c Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Mon, 11 May 2026 20:49:43 +0800 Subject: [PATCH] fix endpoint --- apps/iot/src/iot_app.erl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/iot/src/iot_app.erl b/apps/iot/src/iot_app.erl index fc8b932..b92214c 100644 --- a/apps/iot/src/iot_app.erl +++ b/apps/iot/src/iot_app.erl @@ -19,14 +19,15 @@ start(_StartType, _StartArgs) -> catch Class:Reason:Stack -> logger:warning("[iot_app] start failed, class: ~p, reason: ~p, stack: ~p", [Class, Reason, Stack]), - iot_mnesia:init() + ok = iot_mnesia:init() end, - start_endpoints(), - %% 启动http服务。当前 supervisor 初始化依赖本机 simulator API,因此保留此顺序。 start_http_server(), + %% 启动endpoints的相关依赖 + start_endpoints(), + %% 启动ssl服务 start_ssl_server(),