public MqttService(IManagedMqttClient mqttClient, MqttOptions mqttOptions, HomeAutomationPlatform hub) { _mqttClient = mqttClient; _hub = hub; _topicRoot = mqttOptions.TopicRoot; _commandTopic = $"{mqttOptions.TopicRoot}/command"; _mqttClient.ApplicationMessageReceived += OnMqttMessageReceived; }