Example #1
0
 private static IEndPoint CreateEndPoint()
 {
     CoAPEndPoint ep = new CoAPEndPoint(0);
     ep.Start();
     return ep;
 }
Example #2
0
 public static IEndPoint CreateEndPoint(ISpec spec)
 {
     CoapConfig config = new CoapConfig();
     config.DefaultPort = spec.DefaultPort;
     config.Spec = spec;
     CoAPEndPoint ep = new CoAPEndPoint(config);
     ep.Start();
     return ep;
 }