This commit is contained in:
2024-03-29 12:51:52 +07:00
parent c3ff2ac35f
commit b230dcfeed

View File

@@ -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]