Ejemplo n.º 1
0
 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())
Ejemplo n.º 2
0
	def onIndication(self,packet):
		io.info("Incoming indication : handle = "+hex(packet.handle)+" / value = "+packet.value.hex())
		self.emitter.sendp(ble.BLEHandleValueConfirmation())