update
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user