def zdp_raw_IEEE_address_request(self, nwkid, u8RequestType, u8StartIndex): Cluster = "0001" payload = get_and_inc_ZDP_SQM(self, nwkid) + "%04x" % struct.unpack( ">H", struct.pack("H", int(nwkid, 16)))[0] + u8RequestType + u8StartIndex return raw_APS_request( self, nwkid, "00", Cluster, "0000", payload, zigate_ep="00", groupaddrmode=False, ackIsDisabled=False, )
def zdp_power_descriptor_request(self, nwkid): self.log.logging("zdpCommand", "Log", "zdp_power_descriptor_request %s" % (nwkid, )) Cluster = "0003" payload = get_and_inc_ZDP_SQM(self, nwkid) + "%04x" % struct.unpack( ">H", struct.pack("H", int(nwkid, 16)))[0] return raw_APS_request( self, nwkid, "00", Cluster, "0000", payload, zigate_ep="00", groupaddrmode=False, ackIsDisabled=False, )