Execute getAllInfo() to load all available device and status information.
consttcr=require("@phoenixcontactusa/node-tcrouter");var TCRouter =newtcr("192.168.1.1",1432,3000);//All info from the routerTCRouter.getAllInfo().then(info => {console.log(info); })//Catch networking or process errors.catch(e => {console.log(e,e.stack); });
Mutable Information
getMutableInfo should be used after the initial getAllInfo request so that only mutable data is requested.
//Upate mutable status info from the TC RouterTCRouter.getMutableInfo().then(info => {console.log(info); }).catch(e => {console.log(e,e.stack); });