Closed
Description
Derived from the same capnproto schema in this repository, information's serialized as a reading containing an array containing an array of u64s, a u64 representing datatype, a u64 UID, a f64 measurement, and a f64 timestamp.
Readings are broadcast to 127.0.0.1:9999 via UDP. The following is a basic demo.
import socket, msgpack
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.bind(("127.0.0.1", 9999))
while True:
x = msgpack.loads(s.recv(1024))
print x
print dict(zip(x, ["Lower", "DataType", "UID", "Measurement", "Timestamp"]))
Metadata
Metadata
Assignees
Labels
No labels