homebridge-openwrt-control 0.0.2-beta.38 → 0.0.2-beta.39
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 +4 -2
package/package.json
CHANGED
package/src/openwrt.js
CHANGED
|
@@ -85,6 +85,8 @@ class OpenWrt extends EventEmitter {
|
|
|
85
85
|
params: [session, service, method, params]
|
|
86
86
|
});
|
|
87
87
|
|
|
88
|
+
if (this.logDebug) this.emit('debug', `Response: ${JSON.stringify(response, null, 2)}`);
|
|
89
|
+
|
|
88
90
|
if (response.data?.error) throw new Error(response.data.error.message || 'Ubus call error');
|
|
89
91
|
|
|
90
92
|
return response.data.result[1];
|
|
@@ -118,7 +120,7 @@ class OpenWrt extends EventEmitter {
|
|
|
118
120
|
openWrtInfo.systemInfo = systemInfo;
|
|
119
121
|
openWrtInfo.networkInfo = networkInfo;
|
|
120
122
|
openWrtInfo.wirelessStatus = wirelessStatus;
|
|
121
|
-
|
|
123
|
+
openWrtInfo.wirelessRadios = wirelessRadios;
|
|
122
124
|
openWrtInfo.ssids = ssids;
|
|
123
125
|
|
|
124
126
|
if (this.firstRun) {
|
|
@@ -130,7 +132,7 @@ class OpenWrt extends EventEmitter {
|
|
|
130
132
|
this.emit('systemInfo', systemInfo);
|
|
131
133
|
this.emit('networkInfo', networkInfo);
|
|
132
134
|
this.emit('wirelessStatus', wirelessStatus);
|
|
133
|
-
|
|
135
|
+
this.emit('wirelessRadios', wirelessRadios);
|
|
134
136
|
this.emit('ssids', ssids);
|
|
135
137
|
|
|
136
138
|
return openWrtInfo;
|