@@ -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` ,
0 commit comments