예제 #1
0
        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);
        }
예제 #2
0
 public void     SendKeepAlive(ProcessDataSet dataSet)
 {
 }
예제 #3
0
 public bool SendDataSet(ProcessDataSet dataSet, bool delta)
 {
     ReceiveDataFromApp?.Invoke(this, dataSet);
     return(true);
 }
예제 #4
0
 public bool SendDataSet(ProcessDataSet dataSet, string m_TopicConfigRequest, bool delta)
 {
     ReceiveDataFromApp?.Invoke(this, dataSet);
     return(true);
 }