Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vals = []
- for i in range(1,60):
- vals.append(readSerialConv())
- print("\n\nsend: datatime:" + val1 + ", value:" + str(vals) + "")
- MSG_TXT = "{\"timestamp\":\"" + val1 +"\",\"deviceid\":\"MyFirstPythonDevice\",\"values\": " + str(vals) + "}"
- msg_txt_formatted = MSG_TXT
- # messages can be encoded as string or bytearray
- if (message_counter & 1) == 1:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement