The device create function is now standarized using a trait
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-04-13 05:41:32 +02:00
parent f4c1ac5c9b
commit 72ab48df42
9 changed files with 86 additions and 72 deletions

View File

@@ -19,17 +19,6 @@ pub trait OnMqtt {
pub type Receiver = broadcast::Receiver<Publish>;
type Sender = broadcast::Sender<Publish>;
#[derive(Debug, Clone, Deserialize)]
pub struct MqttConfig {
pub host: String,
pub port: u16,
pub client_name: String,
pub username: String,
pub password: String,
#[serde(default)]
pub tls: bool,
}
pub struct Mqtt {
tx: Sender,
eventloop: EventLoop,