DeviceManager no longer handles subscribing and filtering topics, each device has to do this themselves now

This commit is contained in:
2024-04-29 01:46:43 +02:00
parent 3e4ea8952a
commit fcd0b370d6
14 changed files with 158 additions and 86 deletions

View File

@@ -61,7 +61,7 @@ async fn app() -> anyhow::Result<()> {
let (client, eventloop) = AsyncClient::new(config.mqtt.clone(), 100);
// Setup the device handler
let device_manager = DeviceManager::new(client.clone());
let device_manager = DeviceManager::new();
let event_channel = device_manager.event_channel();