homebridge-openwrt-control 0.0.2-beta.36 → 0.0.2-beta.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/openwrt.js +2 -1
package/package.json
CHANGED
package/src/openwrt.js
CHANGED
|
@@ -97,7 +97,8 @@ class OpenWrt extends EventEmitter {
|
|
|
97
97
|
const systemInfo = await this.ubusCall('system', 'board');
|
|
98
98
|
if (this.logDebug) this.emit('debug', `System info data: ${JSON.stringify(systemInfo, null, 2)}`);
|
|
99
99
|
|
|
100
|
-
const networkInfo = await this.ubusCall('network.
|
|
100
|
+
const networkInfo = await this.ubusCall('network.device', 'status', { "name": "eth0" });
|
|
101
|
+
//const networkInfo = await this.ubusCall('uci', 'get', { config: 'network.lan.macaddr' });
|
|
101
102
|
if (this.logDebug) this.emit('debug', `Network info data: ${JSON.stringify(networkInfo, null, 2)}`);
|
|
102
103
|
|
|
103
104
|
//const wirelessStatus = await this.ubusCall('network.wireless', 'status');
|