Hello everybody,
I am trying to get a device local ip to control it locally. I got the ip of course using Fing app. However I’d like that Homey app could do this on its own. i tried implementing “Arpping” package but it doesn’t seems to work it returns empty list.
const Homey = require(‘homey’);
const { ManagerCloud } = require(‘homey’);
const Arpping = require(‘arpping’);
var arpping = new Arpping({});
async onInit() {
this.log(‘MyDriver has been inited’);
// const ip = await ManagerCloud.getLocalAddress();
// this.log("ip: ", ip);
const ip = ‘10.2.100.113’;
arpping.discover(ip)
.then(hosts => this.log(hosts))
.catch(err => this.log(err));
}