Changeset

5114:d2a84e6aed2b

mod_pubsub_mqtt: Switch to MQTT 3.1.1 Well that was easy.
author Matthew Wild <mwild1@gmail.com>
date Fri, 16 Dec 2022 22:30:47 +0000
parents 5113:85a7304cfea1
children 5118:7bce75e74f86
files mod_pubsub_mqtt/mqtt.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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