From d11e3a515bd1cb15aba0aa76a27a9f3cf3b3caf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Tue, 19 Mar 2024 12:03:34 +0100 Subject: [PATCH 1/2] bump embedded-nal --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index e2a6ed8..19ca735 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,7 @@ embedded-time = "0.12" varint-rs = {version = "2.2", default-features = false } serde = { version = "1", features = ["derive"], default-features = false } smlang = "0.6.0" -embedded-nal = "0.7" +embedded-nal = "0.8" [features] default = [] From 436dfa5155b3d6eb0d801510fdb4473c6504bf5f Mon Sep 17 00:00:00 2001 From: Ryan Summers Date: Mon, 22 Apr 2024 13:00:10 +0200 Subject: [PATCH 2/2] Updating std-embedded-nal --- Cargo.toml | 2 +- src/config.rs | 8 ++++---- src/mqtt_client.rs | 8 ++++---- src/publication.rs | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 19ca735..3b51952 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,5 +33,5 @@ unsecure = [] [dev-dependencies] log = "0.4" env_logger = "0.10" -std-embedded-nal = "0.2" std-embedded-time = "0.1" +std-embedded-nal = { git = "https://gitlab.com/ryan-summers/std-embedded-nal", branch = "feature/0.8" } diff --git a/src/config.rs b/src/config.rs index ee79aa8..34b705e 100644 --- a/src/config.rs +++ b/src/config.rs @@ -95,8 +95,8 @@ impl<'a, Broker: crate::Broker> ConfigBuilder<'a, Broker> { /// Specify a specific configuration for the session state buffer. /// /// # Note - /// The session state buffer is used for publications greater than [QoS::AtMostOnce]. If these - /// messages are unused, you can specify [BufferConfig::Exactly(0)]. + /// The session state buffer is used for publications greater than [crate::QoS::AtMostOnce]. If + /// these messages are unused, you can specify [BufferConfig::Exactly(0)]. /// /// # Args /// * `config` - The configuration for the size of the session state buffer. @@ -144,8 +144,8 @@ impl<'a, Broker: crate::Broker> ConfigBuilder<'a, Broker> { self } - /// Specify if publication [QoS] should be automatically downgraded to the maximum supported by - /// the server if they exceed the server [QoS] maximum. + /// Specify if publication [crate::QoS] should be automatically downgraded to the maximum + /// supported by the server if they exceed the server [crate::QoS] maximum. pub fn autodowngrade_qos(mut self) -> Self { self.downgrade_qos = true; self diff --git a/src/mqtt_client.rs b/src/mqtt_client.rs index 51f7b2e..a869f64 100644 --- a/src/mqtt_client.rs +++ b/src/mqtt_client.rs @@ -379,8 +379,8 @@ impl<'buf, TcpStack: TcpClientStack, Clock: embedded_time::Clock, Broker: crate: /// If the client is not yet connected to the broker, the message will be silently ignored. /// /// # Args - /// * `publish` - The publication to generate. See [Publication] for a builder pattern to - /// generate a message. + /// * `publish` - The publication to generate. See [crate::Publication] for a builder pattern + /// to generate a message. pub fn publish( &mut self, mut publish: Pub<'_, P>, @@ -738,8 +738,8 @@ impl<'buf, TcpStack: TcpClientStack, Clock: embedded_time::Clock, Broker: crate: /// topic, message, and list of proprties (in that order). /// /// # Returns - /// Ok(Option) - During normal operation, a will optionally be returned to the - /// user software if a value was returned from the `f` closure. If the closure was not + /// `Ok(Option)` - During normal operation, a `result` will optionally be returned to + /// the user software if a value was returned from the `f` closure. If the closure was not /// executed, `None` is returned. Note that `None` may be returned even if MQTT packets were /// processed. /// diff --git a/src/publication.rs b/src/publication.rs index 0f2824a..10c4aff 100644 --- a/src/publication.rs +++ b/src/publication.rs @@ -132,7 +132,7 @@ impl<'a, P: ToPayload> Publication<'a, P> { /// /// # Note /// The received message properties are parsed for both [Property::CorrelationData] and - /// [PropertyResponseTopic]. + /// [Property::ResponseTopic]. /// /// * If correlation data is found, it is automatically appended to the /// publication properties.