def confirmation(self, packet): if self.getStage() == BLEMitmStage.ACTIVE_MITM: io.info("Handle Value Confirmation (from master)") io.info("Redirecting to slave ...") self.a2sEmitter.sendp(ble.BLEHandleValueConfirmation())
def onIndication(self,packet): io.info("Incoming indication : handle = "+hex(packet.handle)+" / value = "+packet.value.hex()) self.emitter.sendp(ble.BLEHandleValueConfirmation())