def _init_(self):
     '''
     Constructor
     '''
     Thread._init_(self);
     self.enableEmulator = True;
     self.ser = serial.Serial('/dev/ttyACM0',9600)
Example #2
0
 def _init_(self, ip, port):
     Thread._init_(self)
     self.ip = ip
     self.port = port
     print('[+] New server socket thread start for' + ip + ':' + str(port))
Example #3
0
 def _init_(self):
     Thread._init_(self)
 def _init_(self, conn, addr):  #creates instance of the class
     global threadNum
     Thread._init_(self, name="Thread-%d" % threadNum)
     threadNum += 1  #add +1 for the number of threads we have
     self.conn = conn  #set both conn. and addr. to self
     self.addr = addr
 def _init_(self):
     global threadNum
     Thread._init_(self, name="Thread-%d" % threadNum)
     threadNum += 1