示例#1
0
 def __init__(self, peerDeviceName, timeouttest):
     if timeouttest:
         mapiTestUtils.MapiTester.__init__(self, peerDeviceName, mapiTestUtils.MapiTestResultHandler(), False, True, REQUIRED_SERVICES, REQUIRED_SOLICITED_SERVICES, False, "TestBleOtaDFU")
     else:
         mapiTestUtils.MapiTester.__init__(self, peerDeviceName, mapiTestUtils.MapiTestResultHandler(), False, False, REQUIRED_SERVICES, REQUIRED_SOLICITED_SERVICES, False, "TestBleOtaDFU")
     self.OtaDfuControlPointQ = mapiTestUtils.pipeQueue()
     self.respValue = 0
     self.expectedResponse = [] # [resp_opcode, req_opcode, resp_value, resp_param]
示例#2
0
 def __init__(self, peerDeviceName, timeouttest):
     super(BleDFUTests, self).__init__(peerDeviceName, timeouttest)
     self.OtaDfuControlPointQ = mapiTestUtils.pipeQueue()