def start(self): self.db.clear() iofun.addListener(self) msg = message.createExtendedMsg(InsteonAddress(self.addr), 0x2f, 0, []) msg.setByte("userData1", 0) msg.setByte("userData2", 0) msg.setByte("userData3", 0) msg.setByte("userData4", 0) msg.setByte("userData5", 0) iofun.writeMsg(msg) outchars("sent db query msg, incoming records: ") self.timer = Timer(20.0, self.giveUp) self.timer.start()
def start(self): self.db.clear() iofun.addListener(self) msg = message.createExtendedMsg(InsteonAddress(self.addr), 0x2f, 0, []) msg.setByte("userData1", 0); msg.setByte("userData2", 0); msg.setByte("userData3", 0); msg.setByte("userData4", 0); msg.setByte("userData5", 0); iofun.writeMsg(msg) outchars("sent db query msg, incoming records: ") self.timer = Timer(20.0, self.giveUp) self.timer.start()
def queryext(self, cmd1, cmd2, data): msg = message.createExtendedMsg(InsteonAddress(self.addr), cmd1, cmd2, data) self.sendMsg(msg); return msg;