Skip to content

Commit 8e3974e

Browse files
committed
Merge branch 'hotfix/1.0.12'
2 parents a26dd98 + 9da83ec commit 8e3974e

File tree

4 files changed

+10
-21
lines changed

4 files changed

+10
-21
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.11
1+
1.0.12

bin/meross-setup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,5 @@ if (undefined !== options.wifiCipher && isNaN(options.wifiCipher)) {
9999
cipher: options.wifiCipher,
100100
bssid: options.wifiBssid,
101101
})
102-
console.log(`Rebooting device`)
102+
console.log(`Device will reboot...`)
103103
})()

lib/api.js

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -182,22 +182,18 @@ module.exports = class API {
182182
['Device', `${hw.type} ${hw.subType} ${hw.chipType} (hardware:${hw.version} firmware:${fw.version})`],
183183
['UUID', hw.uuid],
184184
['Mac address', hw.macAddress],
185-
['WIFI', `${fw.innerIp} (${fw.wifiMac})`],
185+
['IP address', fw.innerIp],
186186
];
187187

188188
if (fw.server) {
189189
rows.push(
190-
['MQTT broker', `${fw.server}:${fw.port}`],
191-
['Status', `${system.online.status == 0 ? '^ROffline' : '^GOnline'}`]
192-
)
193-
} else {
194-
rows.push(
195-
['Status', `^BConfiguration`]
190+
['Current MQTT broker', `${fw.server}:${fw.port}`]
196191
)
197192
}
198193

199194
rows.push(
200-
['Credentials', `User: ^C${fw.userId}\nPassword: ^C${this.calculateDevicePassword(hw.macAddress, fw.userId)}`]
195+
['Credentials', `User: ^C${hw.macAddress}\nPassword: ^C${this.calculateDevicePassword(hw.macAddress, fw.userId)}`],
196+
['MQTT topics', `Publishes to: ^C/appliance/${hw.uuid}/publish\nSubscribes to: ^C/appliance/${hw.uuid}/subscribe`]
201197
)
202198

203199
term.table(
@@ -293,9 +289,10 @@ module.exports = class API {
293289
}
294290

295291
let rows = [];
296-
for (let server of servers) {
292+
for (let s = 0; s < servers.length; s++) {
293+
let server = servers[s];
297294
rows.push([
298-
'MQTT broker',
295+
`${s > 0 ? 'Failover' : 'Primary'} MQTT broker`,
299296
`${server.host}:${server.port}`
300297
])
301298
}
@@ -360,14 +357,6 @@ module.exports = class API {
360357
}
361358
})
362359

363-
term.table(
364-
[
365-
['Encoded WIFI SSID', `${ssid}`],
366-
['Encoded WIFI password', `${password}`]
367-
],
368-
tableOptions
369-
)
370-
371360
try {
372361
const response = await axios.post(
373362
`http://${this.host}/config`,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "meross",
3-
"version": "1.0.10",
3+
"version": "1.0.12",
44
"description": "Utility to configure Meross devices for local MQTT",
55
"keywords": [
66
"smarthome",

0 commit comments

Comments
 (0)