From a85f0788cd223f2f38ee67705e2ea0c67de182e9 Mon Sep 17 00:00:00 2001 From: Makendran Date: Fri, 11 Apr 2025 15:13:19 +0530 Subject: [PATCH 1/2] Update mqtt5_packet.ts --- lib/common/mqtt5_packet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/mqtt5_packet.ts b/lib/common/mqtt5_packet.ts index 9dcc762c4..86cd6e005 100644 --- a/lib/common/mqtt5_packet.ts +++ b/lib/common/mqtt5_packet.ts @@ -875,7 +875,7 @@ export interface ConnectPacket extends IPacket { * * See [MQTT5 Keep Alive](https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901045) */ - keepAliveIntervalSeconds: number; + keepAliveIntervalSeconds: 30; /** * A unique string identifying the client to the server. Used to restore session state between connections. From 930622f72ae92447666aaaf8c6f0d4082780008a Mon Sep 17 00:00:00 2001 From: Makendran Date: Fri, 11 Apr 2025 15:14:48 +0530 Subject: [PATCH 2/2] Update mqtt5_packet.ts --- lib/common/mqtt5_packet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/mqtt5_packet.ts b/lib/common/mqtt5_packet.ts index 86cd6e005..c3de03487 100644 --- a/lib/common/mqtt5_packet.ts +++ b/lib/common/mqtt5_packet.ts @@ -875,7 +875,7 @@ export interface ConnectPacket extends IPacket { * * See [MQTT5 Keep Alive](https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901045) */ - keepAliveIntervalSeconds: 30; + keepAliveIntervalSeconds: 30; // This is required, not optional /** * A unique string identifying the client to the server. Used to restore session state between connections.