Skip to content

support new msgpack schema & UDP transport #1

Closed
@itdaniher

Description

@itdaniher

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions