public DiscoveryService() { _coapClient = new CoapClient(CoapEndpointFactory.GetEndpoint(new Uri("coap://0.0.0.0/"), false)); _dbContext = Locator.Current.GetService <CoapExplorerContext>(); _discoverRequest = new CoapMessage() { IsMulticast = true, Type = CoapMessageType.NonConfirmable, Code = CoapMessageCode.Get }; }
public CoapService(Uri listenAddress) { _endpoint = CoapEndpointFactory.GetEndpoint(listenAddress); _coapClient = new CoapClient(_endpoint); }