still status handling

This commit is contained in:
2018-03-27 21:03:07 +02:00
parent 0977223736
commit 3179c84684
2 changed files with 14 additions and 1 deletions

View File

@ -32,6 +32,11 @@ export class RelayBoxThing extends AItem {
logger.info(`RT: status parsed: ${statusParsed}`)
logger.info(`RT: device: ${status.metadata.device}`)
logger.info(`RT: uptime: ${status.data.uptime}`)
for (let i : number = 0; i < this.itemNames.length; i ++) {
logger.info(`RT: state: ${status.data.switchstatus[i].state}`)
logger.info(`RT: feedb: ${status.data.switchstatus[i].feedbackState}`)
logger.info(`RT: confl: ${status.data.switchstatus[i].stateConflict}`)
}
} else {
logger.info(`RT: ${topic}, ${payload}`)
let thingRelatedPart = topic.substring(this.stateTopicPre.length+1)