public void SendDataToApp(ProcessDataSet dataSet, string topic, string publisherId = null) { if (!string.IsNullOrEmpty(publisherId)) { ClientId = publisherId; dataSet.PublisherId = publisherId; } if (string.IsNullOrEmpty(topic)) { topic = Settings.Client.DefaultPublisherTopicName; topic = Client.CreateTopicName(topic, ClientId, dataSet.GetWriterId(), "Meas", dataSet.GetDataSetType()); } MessageDecodedEventArgs args = new MessageDecodedEventArgs(dataSet.GenerateDateFrame(), topic); MessageReceived?.Invoke(this, args); }
public void SendKeepAlive(ProcessDataSet dataSet) { }
public bool SendDataSet(ProcessDataSet dataSet, bool delta) { ReceiveDataFromApp?.Invoke(this, dataSet); return(true); }
public bool SendDataSet(ProcessDataSet dataSet, string m_TopicConfigRequest, bool delta) { ReceiveDataFromApp?.Invoke(this, dataSet); return(true); }