private void CommandProcessor_NotifyCallerEventHandler(object sender, CommandProcessor.NotificationDataEventArgs e) { if (string.Equals(e?.Target, "RFCOMM")) { this.SendMessage(e?.Data?.ToString()); } }
private async void CommandProcessor_NotifyCallerEventHandler(object sender, CommandProcessor.NotificationDataEventArgs e) { if (string.Equals(e?.Target, "AZURE")) { this.reportedTelemetry = e?.Data as JObject; if (e.IsUrgent) { // send tele instance right now await this.SendTelemetryAsync(); } } }