srctree

Gregory Mullen parent 29cef8c3 12a672ff
update to new mqtt

build.zig.zon added: 7, removed: 7, total 0
@@ -4,8 +4,8 @@
//.minimum_zig_version = "0.11.0",
.dependencies = .{
.mqtt = .{
.url = "git+https://github.com/GrayHatter/mqtt.git#e1afc44f9964bc95c960b5f420a64f704a0c97cc",
.hash = "1220c82c26fd2029c86570bc49a275d7e25ba577c73cd085579ab7e0d2e2d24246aa",
.url = "git+https://github.com/GrayHatter/mqtt.git#3973a0b2b8bef1be49b5f90f7a796475bf6bee04",
.hash = "1220ac15ae69b0873e30e6a0f13414e3156eb98e0c70aeac96888d7bb13b2b8977a0",
},
},
.paths = .{
 
src/main.zig added: 7, removed: 7, total 0
@@ -20,17 +20,17 @@ pub fn main() !void {
 
while (client.recv()) |pkt| {
switch (pkt) {
.CONNACK => {
.connack => {
log.err("loop", .{});
log.err("CONNACK", .{});
},
.PUBLISH => |publ| {
.publish => |publ| {
//log.err("PUBLISH [{s}]", .{publ.topic_name});
if (std.mem.startsWith(u8, publ.topic_name, "zigbee2mqtt")) {
try zigbee.publish(publ);
}
},
.SUBACK => {
.suback => {
log.err("SUBACK ", .{});
},
else => |tag| {