Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.01 KB

README.md

File metadata and controls

38 lines (28 loc) · 1.01 KB

IEC-60870 is C# version of OpenMUC IEC-60870 library

Installation

A nuget package is available for the library. To install IEC60870 Library, run the following command in the Package Manager Console:

PM> Install-Package IEC60870

Examples

Client

Write your simple client application like this

 var client = new ClientSAP("127.0.0.1", 2404);
 client.NewASdu += asdu => {
      // process received Asdu
  };

  client.ConnectionClosed += e =>
  {
      Console.WriteLine(e);
  };

  client.Connect();

Server

and if you want to create server application then use ServerSAP instead of ClientSAP

  var server = new ServerSAP("127.0.0.1", 2405); 
  server.StartListen(10);
  server.SendASdu(asdu);         

License

IEC-60870 is licensed under MIT. Refer to license.txt for more information.