srctree

Gregory Mullen parent 3e8524e7 17d3cf2b
ditto

src/main.zig added: 2, removed: 7, total 0
@@ -34,10 +34,7 @@ pub fn main() !void {
while (client.recv()) |packet| {
if (packet) |pkt| {
switch (pkt) {
.connack => {
log.err("loop", .{});
log.err("CONNACK", .{});
},
.connack => {},
.publish => |publ| {
if (startsWith(u8, publ.topic_name, "zigbee2mqtt")) {
try zigbee.publish(publ);
@@ -47,9 +44,7 @@ pub fn main() !void {
log.err("SUBACK ", .{});
},
else => |tag| {
log.err("", .{});
log.err("read [{s}]", .{@tagName(tag)});
log.err("", .{});
},
}
} else {