Skip to content

Commit

Permalink
feat: mqtt
Browse files Browse the repository at this point in the history
  • Loading branch information
dawnwinterLiu committed May 31, 2024
1 parent 022dbee commit 186fe57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dgiot/src/transport/dgiot_mqtt.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 186fe57

Please sign in to comment.