private void OnConnected(object sender, MqttClientConnectedEventArgs e) { _traceMessages.Enqueue(new MqttNetLogMessage("", DateTime.Now, -1, "", MqttNetLogLevel.Info, "! CONNECTED EVENT FIRED", null)); Task.Run(UpdateLogAsync); }
private async void MqttClient_Connected(object sender, MQTTnet.Client.MqttClientConnectedEventArgs e) { await mqttClient.SubscribeAsync(new TopicFilterBuilder().WithTopic(reciveTopic[0]).Build()); //await mqttClient.SubscribeAsync(new TopicFilterBuilder().WithTopic(sendTopic).Build()); msg = "Init Completed"; Xamarin.Forms.Device.BeginInvokeOnMainThread(SetStatus); }
private void OnConnected(object sender, MqttClientConnectedEventArgs eventArgs) { Connected?.Invoke(this, eventArgs); }
private void Client_Connected(object sender, MQTTnet.Client.MqttClientConnectedEventArgs e) { w.Dispatcher.Invoke(v, "connected to aws successfully!"); }
private void _mqttClient_Connected(object sender, MQTTnet.Client.MqttClientConnectedEventArgs e) { _logger.LogDebug($"_mqttClient_Connected"); }