private async void StartMQTT() { bool connected = await mqttClient.Connect(); if (connected) { mqttClient.StartSubscribe(); mqttClient.SubscribeListener += MqttClient_SubscribeListener; } }
private async void StartMQTT() { bool connected = await mqttClient.Connect(); if (connected) { mqttClient.StartSubscribe(); mqttClient.SubscribeListener += MqttClient_SubscribeListener; } }