private static IEndPoint CreateEndPoint() { CoAPEndPoint ep = new CoAPEndPoint(0); ep.Start(); return ep; }
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; }