X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=mqtt-client.py;h=8a053d0d2de6dd6c26d6b79ecd35af4e0f9f3829;hb=049dc4e7874fe73c600469542e5826a188dbc03d;hp=cbc7cd46177f3cd8dabd772bf96af5e4d303f46f;hpb=394fb91b102fe248aec164d70a50c6088163babb;p=remote-debug.git diff --git a/mqtt-client.py b/mqtt-client.py index cbc7cd4..8a053d0 100644 --- a/mqtt-client.py +++ b/mqtt-client.py @@ -21,7 +21,9 @@ if __name__ == '__main__': def on_message(client, userdata, msg): print(msg.topic+" "+str(msg.payload)) if msg.topic == id + '-response': - print 'port is', str(msg.payload) + port = msg.payload + print 'port is', str(port) + print 'run ssh debug@autossh.suanzi.ai -p ' + str(port) + ' to connect to ' + id + ' device' client = mqtt.Client() client.on_connect = on_connect