def do_IAmRequest(self, apdu): """Given an I-Am request, cache it.""" self.log(("do_IAmRequest {!r}".format(apdu))) # build a key from the source, just use the instance number key = (str(apdu.pduSource), apdu.iAmDeviceIdentifier[1]) self.i_am_counter[key] += 1 # continue with the default implementation BIPSimpleApplication.do_IAmRequest(self, apdu)
def do_IAmRequest(self, apdu): """Given an I-Am request, cache it.""" if _debug: WhoIsIAmApplication._debug("do_IAmRequest %r", apdu) # build a key from the source, just use the instance number key = (str(apdu.pduSource), apdu.iAmDeviceIdentifier[1]) # count the times this has been received i_am_counter[key] += 1 # continue with the default implementation BIPSimpleApplication.do_IAmRequest(self, apdu)
def do_IAmRequest(self, apdu): """Given an I-Am request, cache it.""" if _debug: WhoIsIAmApplication._debug("do_IAmRequest %r", apdu) # build a key from the source, just use the instance number key = (str(apdu.pduSource), apdu.iAmDeviceIdentifier[1], ) # count the times this has been received i_am_counter[key] += 1 # continue with the default implementation BIPSimpleApplication.do_IAmRequest(self, apdu)