You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.
Step1: Run client which calles client.findResources() periodically.
vardevice=require("iotivity-node")();device.configure({role: "client",connectionMode: "acked"}).then(function(){discoverResources();},function(error){console.log("Client: device.configure() failed with "+error);});device.client.addEventListener("resourcefound",function(event){console.log("Discovered resource(s) via the following event:\n"+JSON.stringify(event,null,4));});functiondiscoverResources(){device.client.findResources().then(function(){console.log("Client: findResources() successful");},function(error){console.log("Client: findResources() failed with "+error+" and result "+error.result);});notifyObserversTimeoutId=setTimeout(discoverResources,5000);}
Step2: Run the server without resource registration.
Step1: Run client which calles client.findResources() periodically.
Step2: Run the server without resource registration.
Step 3(optional): Run an another server that register the resource.
e.g. https://github.com/otcshare/iotivity-node/blob/master/js/high-level-server-example.js
Outcome: Check the output at client side
Client: findResources() failed with Error: findResources: failed to cancel previous handle and result 255
The text was updated successfully, but these errors were encountered: