Skip to content

Commit

Permalink
update Websocket Send Code
Browse files Browse the repository at this point in the history
  • Loading branch information
Archer committed Apr 14, 2017
1 parent bd53ac2 commit 9df1eb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sensingDataToAllIoTCloudWebSocketSend.py
Expand Up @@ -45,7 +45,7 @@

t = time.time();
date = datetime.datetime.fromtimestamp(t).strftime('%Y%m%d%H%M%S')
vals = "{\"date\" : \"" + date + "\", \"temperature\":" + t0 + "\", \"humidity\":" + h0 + "}"
vals = "{\"date\" : \"" + date + "\", \"temperature\":" + t0 + ", \"humidity\":" + h0 + "}"
print vals;
ws.send(vals)
time.sleep(1)

0 comments on commit 9df1eb7

Please sign in to comment.