From 2c22592376bbb526924f55f4e50e63f39b52489b Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Sat, 23 Dec 2023 17:04:22 +0800 Subject: [PATCH] add sup --- apps/iot/src/iot_sup.erl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/iot/src/iot_sup.erl b/apps/iot/src/iot_sup.erl index 1cd72c6..5479484 100644 --- a/apps/iot/src/iot_sup.erl +++ b/apps/iot/src/iot_sup.erl @@ -64,6 +64,15 @@ init([]) -> modules => ['iot_zd_endpoint'] }, + #{ + id => 'iot_zd_consumer', + start => {'iot_zd_consumer', start_link, []}, + restart => permanent, + shutdown => 2000, + type => worker, + modules => ['iot_zd_consumer'] + }, + #{ id => 'iot_jinzhi_endpoint', start => {'iot_jinzhi_endpoint', start_link, []},