From b230dcfeed683e451a5a784c39fb184fa0994600 Mon Sep 17 00:00:00 2001 From: tonaerospace Date: Fri, 29 Mar 2024 12:51:52 +0700 Subject: [PATCH] update --- src/utils.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.jl b/src/utils.jl index 1485f4e..9984b04 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -83,8 +83,8 @@ function sendReceivePrompt(a::T1, prompt::String, sendtopic::String; starttime = Dates.now() result = nothing - while true #WORKING check how to receive msg , should i use :text or :message? - timepass = (Dates.now() - starttime).value / 1000.0 + while true + timepass = GeneralUtils.time_difference(starttime, Dates.now(), "seconds") if isready(a.mqttMsg_internal) payload = take!(a.mqttMsg_internal) if payload[:msgMeta][:replyToMsgId] == outgoing_msg[:msgMeta][:msgId]