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