X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=suanzi-support;h=d016b06bd90893ec4e60be05505a9d666c0657e6;hb=c049e62c874efcae34bbce9e01d4b9829217b0b1;hp=8809b0510f9f1249707e6da9526781d400483eda;hpb=37f9e2211af34de067d406fb5a7c85dfba104c3e;p=remote-debug.git diff --git a/suanzi-support b/suanzi-support index 8809b05..d016b06 100755 --- a/suanzi-support +++ b/suanzi-support @@ -67,7 +67,7 @@ class MyClient(mqtt.Client): if __name__ == '__main__': mac = hex(get_mac()) - id = os.getenv('USER') + '-' + '{:0>12}'.format(mac[2:13]) + id = os.getenv('USER') + '-' + '{:0>12}'.format(mac[2:-1]) print 'id is: ' , id client = MyClient(id) client.connect(MQTT_SERVER, MQTT_PORT, 60)