You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"]))
The text was updated successfully, but these errors were encountered:
Yep! I'm pretty sure unix sockets are blocked by rust-lang/rust#12103 / rust-lang/rust#11201 - I had the code working fine using greenthreads, but using system threads I couldn't ever get the fifo object to actually be instantiated.
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.
The text was updated successfully, but these errors were encountered: