from Thing import Thing, on_message
import time
import threading
thing = Thing('"12345"', '"12345"',
              "http://165.22.121.233:8888/api/authorization/", "165.22.121.233")
thing.on_message = on_message
thing.Start()
thr = threading.Thread(target=thing.OnConnected)
thr.start()
thing.Send("start ssss")
time.sleep(5)
thing.End()
