Professional Documents
Culture Documents
ChatLog Day 3 FDP On IoT 2020 - 05 - 06 15 - 31
ChatLog Day 3 FDP On IoT 2020 - 05 - 06 15 - 31
ChatLog Day 3 FDP On IoT 2020 - 05 - 06 15 - 31
2020_05_06 15_31.rtf
HOST = 'www.cloudchip.io'
TOKEN='xxxxxxxxxxxxxxx'
client=mqtt.Client()
client.username_pw_set(TOKEN)
client.connect(HOST,1883,60)
client.loop_start()
data={"Temperature":0,"Light":0}
while True: