Esempio n. 1
0
 static void listener_OPCDataChanged(object sender, OpcDataChangedEventArgs e)
 {
     Console.Clear();
     Console.WriteLine("Press any key to stop.");
     Hashtable h = e.DataChangedResult;
     foreach (DictionaryEntry de in h)
     {
         Console.WriteLine(de.Key+":"+de.Value);
     }
 }
Esempio n. 2
0
 static void IOpcListener_OPCDataChanged(object sender, OpcDataChangedEventArgs e)
 {
     WsServer.ServerManager.BroadCast(e.Type, e.DataChangedResult.ToJSON());
 }