mod_pubsub_mqtt: Switch to MQTT 3.1.1
authorMatthew Wild <mwild1@gmail.com>
Fri, 16 Dec 2022 22:30:47 +0000
changeset 5118 d2a84e6aed2b
parent 5117 85a7304cfea1
child 5122 7bce75e74f86
mod_pubsub_mqtt: Switch to MQTT 3.1.1 Well that was easy.
mod_pubsub_mqtt/mqtt.lib.lua
--- a/mod_pubsub_mqtt/mqtt.lib.lua	Fri Dec 16 22:16:45 2022 +0000
+++ b/mod_pubsub_mqtt/mqtt.lib.lua	Fri Dec 16 22:30:47 2022 +0000
@@ -54,7 +54,7 @@
 	until bit.band(digit, 0x80) == 0;
 	packet.length = length;
 	if packet.type == "connect" then
-		if self:read_string() ~= "MQIsdp" then
+		if self:read_string() ~= "MQTT" then
 			module:log("warn", "Unexpected packet signature!");
 			packet.type = nil; -- Invalid packet
 		else