提交 eb53a9f1 authored 作者: blu's avatar blu

evmlmotion: resize image

上级 91ac677b
...@@ -503,7 +503,7 @@ create reverse ssh tunnel between edge box and an sshd server ...@@ -503,7 +503,7 @@ create reverse ssh tunnel between edge box and an sshd server
"data":{ "data":{
"host":"47.56.83.236", "host":"47.56.83.236",
"user":"root", "user":"root",
"password":"Hz123456", "password":"mypassword",
"port":9999 "port":9999
} }
} }
......
...@@ -131,12 +131,13 @@ class VAMMQTTClient: ...@@ -131,12 +131,13 @@ class VAMMQTTClient:
# The callback for when the client receives a CONNACK response from the server. # The callback for when the client receives a CONNACK response from the server.
@staticmethod @staticmethod
def on_connect(client, userdata, flags, rc): def on_connect(client, userdata, flags, rc):
print("Connected with result code "+str(rc)) now = datetime.datetime.now()
print(now, "Connected with result code "+str(rc))
# Subscribing in on_connect() means that if we lose the connection and # Subscribing in on_connect() means that if we lose the connection and
# reconnect then subscriptions will be renewed. # reconnect then subscriptions will be renewed.
topic = '$queue/video.ai/v1.0/task' topic = '$queue/video.ai/v1.0/task'
client.subscribe(topic, qos=1) client.subscribe(topic, qos=1)
print('subscribed to ', topic) print(datetime.datetime.now(), 'subscribed to ', topic)
#client.subscribe("$queue/video.ai/v1.0/task", qos=1) #client.subscribe("$queue/video.ai/v1.0/task", qos=1)
# The callback for when a PUBLISH message is received from the server. # The callback for when a PUBLISH message is received from the server.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论