aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2025-07-04 12:56:15 +0200
committerTomasz Kramkowski <tomasz@kramkow.ski>2025-07-04 12:56:15 +0200
commit37cec514b40b7f1243f98de4e5bb17de04754b0a (patch)
treee1ea1bf0a506cc39b10f51a326544ce083ce87b0 /src
parent68839f01cd982f03d7ff95d3180cfae8534dc3eb (diff)
downloadmqttr-37cec514b40b7f1243f98de4e5bb17de04754b0a.tar.gz
mqttr-37cec514b40b7f1243f98de4e5bb17de04754b0a.tar.xz
mqttr-37cec514b40b7f1243f98de4e5bb17de04754b0a.zip
Future note regarding adding MQTT configurables
Diffstat (limited to 'src')
-rw-r--r--src/config.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index e70893b..76f65db 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -137,6 +137,7 @@ impl Config {
if let Some(credentials) = &self.credentials {
options.set_credentials(&credentials.username, &credentials.password);
}
+ // TODO: Make configurable
options.set_keep_alive(Duration::from_secs(5));
options.set_max_packet_size(10 * 1024 * 1024, 10 * 1024 * 1024);
AsyncClient::new(options, 10)