From 186fe57c900d051eab546a557a437521fdcd64a0 Mon Sep 17 00:00:00 2001 From: dawnwinterLiu <1737801684@qq.com> Date: Fri, 31 May 2024 11:26:21 +0800 Subject: [PATCH] feat: mqtt --- apps/dgiot/src/transport/dgiot_mqtt.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dgiot/src/transport/dgiot_mqtt.erl b/apps/dgiot/src/transport/dgiot_mqtt.erl index 837730ef..95bf57f0 100644 --- a/apps/dgiot/src/transport/dgiot_mqtt.erl +++ b/apps/dgiot/src/transport/dgiot_mqtt.erl @@ -156,7 +156,7 @@ send(ProductId, DevAddr, Topic, Payload) -> -spec(publish(Client :: binary(), Topic :: binary(), Payload :: binary()) -> ok | {error, Reason :: any()}). publish(Client, Topic, Payload) -> - timer:sleep(10), + timer:sleep(1), Msg = emqx_message:make(dgiot_utils:to_binary(Client), 0, Topic, Payload), emqx:publish(Msg), ok.