Skip to content

Commit 2b905ca

Browse files
committed
fix(app): increase mqtt max_packet_size option
Signed-off-by: Deep Panchal <[email protected]>
1 parent 88bc4f0 commit 2b905ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
mod format;
22

33
use crate::format::format_mqtt_log_entry;
4-
use aws_iot_device_sdk_rust::settings::MQTTOptionsOverrides;
4+
use aws_iot_device_sdk_rust::settings::{MQTTMaxPacketSize, MQTTOptionsOverrides};
55
use aws_iot_device_sdk_rust::{
66
AWSIoTAsyncClient, AWSIoTSettings, Packet, QoS, async_event_loop_listener,
77
};
@@ -139,7 +139,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
139139
port: Some(port),
140140
clean_session: Some(true),
141141
keep_alive: None,
142-
max_packet_size: None,
142+
max_packet_size: Some(MQTTMaxPacketSize::new(24 * 1024, 24 * 1024)),
143143
request_channel_capacity: None,
144144
pending_throttle: None,
145145
inflight: None,

0 commit comments

Comments
 (0)