@@ -182,22 +182,18 @@ module.exports = class API {
182
182
[ 'Device' , `${ hw . type } ${ hw . subType } ${ hw . chipType } (hardware:${ hw . version } firmware:${ fw . version } )` ] ,
183
183
[ 'UUID' , hw . uuid ] ,
184
184
[ 'Mac address' , hw . macAddress ] ,
185
- [ 'WIFI ' , ` ${ fw . innerIp } ( ${ fw . wifiMac } )` ] ,
185
+ [ 'IP address ' , fw . innerIp ] ,
186
186
] ;
187
187
188
188
if ( fw . server ) {
189
189
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 } ` ]
196
191
)
197
192
}
198
193
199
194
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` ]
201
197
)
202
198
203
199
term . table (
@@ -293,9 +289,10 @@ module.exports = class API {
293
289
}
294
290
295
291
let rows = [ ] ;
296
- for ( let server of servers ) {
292
+ for ( let s = 0 ; s < servers . length ; s ++ ) {
293
+ let server = servers [ s ] ;
297
294
rows . push ( [
298
- ' MQTT broker' ,
295
+ ` ${ s > 0 ? 'Failover' : 'Primary' } MQTT broker` ,
299
296
`${ server . host } :${ server . port } `
300
297
] )
301
298
}
@@ -360,14 +357,6 @@ module.exports = class API {
360
357
}
361
358
} )
362
359
363
- term . table (
364
- [
365
- [ 'Encoded WIFI SSID' , `${ ssid } ` ] ,
366
- [ 'Encoded WIFI password' , `${ password } ` ]
367
- ] ,
368
- tableOptions
369
- )
370
-
371
360
try {
372
361
const response = await axios . post (
373
362
`http://${ this . host } /config` ,
0 commit comments