Fix pubsub packet creation.

This commit is contained in:
Kyle Isom 2022-02-26 19:47:13 -08:00
parent 19f68971f2
commit 5f502fedb5
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class Publisher:
self.socket.bind(addr)
def publish(self, message, topic=b''):
message = proto.Packet(topic=topic, created=int(time.time()), payload=message)
message = proto.Packet(topic=topic, timestamp=int(time.time()), payload=message)
return self.socket.send(message.SerializeToString())
def publish_json(self, message, topic=b''):