Пример #1
0
 def run(self):
     error, result = winsockbtooth.connect(deviceID = self.deviceID)
     if error == False:
         winsockbtooth.closesocket(result)
         winsockbtooth.WSACleanup()
     
     self.callback(error,result)
     return
Пример #2
0
 def terminate(self):
     self.running = False
     if self.socket != None:
         winsockbtooth.closesocket(self.socket)
Пример #3
0
 def terminate(self):
     self.running = False
     if self.socket != None:
         winsockbtooth.closesocket(self.socket)