Commit 8196280a authored by Robin Obůrka's avatar Robin Obůrka

dev: Generate serial number in out_only box - useful for eye-debugging

parent 0c023c02
...@@ -18,12 +18,16 @@ def teardown(context): ...@@ -18,12 +18,16 @@ def teardown(context):
def process(context): def process(context):
serial = 0
while True: while True:
data = { data = {
"foo": context.foo, "foo": context.foo,
"serial": serial,
"ts": int(time.time()), "ts": int(time.time()),
} }
serial += 1
yield "sentinel/dev/sn", data yield "sentinel/dev/sn", data
print("PUB", data) print("PUB", data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment