Esempio n. 1
0
 def get_data(self):
     while 1:
         print "get"
         #self.queueLock.acquire()
         if not self.q.empty():
             data = self.q.get()
             print data
             #pdb.set_trace()
             sendData_mh(self.sock_l, trans_l, json.dumps(data))
         #self.queueLock.release()
         time.sleep(self.interval)
Esempio n. 2
0
 def get_data(self):
     while 1:
         print "get"
         #self.queueLock.acquire()
         if not self.q.empty():
             data = self.q.get()
             print data
             #pdb.set_trace()
             sendData_mh(self.sock_l, trans_l, json.dumps(data))
         #self.queueLock.release()
         time.sleep(self.interval)
Esempio n. 3
0
 def get_data(self):
     while 1:
         if not self.q.empty():
             data = self.q.get()
             sendData_mh(self.sock_l, trans_l, json.dumps(data))
         time.sleep(self.interval)
Esempio n. 4
0
def sendFf(d_in, ff_l):
    return sendData_mh(ff_sock_l, ff_l, d_in)
Esempio n. 5
0
def sendSaver(d_in, saver_l):
    return sendData_mh(saver_sock_l, saver_l, d_in)
Esempio n. 6
0
 def get_data(self):
     while 1:
         if not self.q.empty():
             data = self.q.get()
             sendData_mh(self.sock_l, trans_l, json.dumps(data))
         time.sleep(self.interval)
Esempio n. 7
0
def sendFf(d_in, ff_l):
    return sendData_mh(ff_sock_l, ff_l, d_in)
Esempio n. 8
0
def sendSaver(d_in, saver_l):
    return sendData_mh(saver_sock_l, saver_l, d_in)