aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Holskil <andreas.holskil@telenor.com>2023-12-01 14:53:12 +0100
committerAndreas Holskil <andreas.holskil@telenor.com>2023-12-01 14:53:12 +0100
commit31197a4fa189e58d564fc383ddf1a114b8ed3350 (patch)
treeec622150953d13e26cd8561507184d23ff5c1f82
parent6903a9623c5a28e702c73af66f4aa0a929f5bed9 (diff)
fix: add two more zeros to max_packet_size
-rw-r--r--src/mqtt/client.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mqtt/client.rs b/src/mqtt/client.rs
index ca1eb38..145bca8 100644
--- a/src/mqtt/client.rs
+++ b/src/mqtt/client.rs
@@ -13,7 +13,7 @@ pub fn create(config: MqttConfig) -> Result<(AsyncClient, rumqttc::EventLoop), S
};
mqttoptions.set_keep_alive(Duration::from_secs(45));
- mqttoptions.set_max_packet_size(100000, 100000);
+ mqttoptions.set_max_packet_size(100000000, 100000000);
Ok(AsyncClient::new(mqttoptions, 1024))
}