Exemple #1
0
 def QuerySend(self, funcPara):
     query = Query()
     query.CommonHeader = FrameHeader(0x55, funcPara,
                                      staticVar.getid() & 0x00FF,
                                      staticVar.getid() >> 8)
     query.CommonTail = self.tail
     staticVar.outPoint.write(bytearray(query))
    def query_port(cls, func):
        id_for = staticVar.getid()
        lowid = id_for & 0x00FF
        highid = id_for >> 8

        query = Query()
        query.CommonHeader = FrameHeader(0x55, func, lowid, highid)
        query.CommonTail = cls.tail
        for i in bytearray(query):
            print i,

        staticVar.getSock().sendall(bytearray(query))
 def query_port(cls,func):
     id_for=staticVar.getid()
     lowid=id_for&0x00FF
     highid=id_for>>8
 
     query=Query()
     query.CommonHeader=FrameHeader(0x55,func,lowid,highid)
     query.CommonTail=cls.tail
     for i in bytearray(query):
         print i,
          
     staticVar.getSock().sendall(bytearray(query))
 def QuerySend(self,funcPara):
     query=Query()
     query.CommonHeader=FrameHeader(0x55,funcPara,staticVar.getid()&0x00FF,staticVar.getid()>>8)
     query.CommonTail=self.tail
     staticVar.outPoint.write(bytearray(query))
 def QuerySend(self, funcPara):
     query = Query()
     query.CommonHeader = FrameHeader(0x55, funcPara, self.lowid,
                                      self.highid)
     query.CommonTail = self.tail
     self.outPoint.write(bytearray(query))
 def QuerySend(self,funcPara):
     query=Query()
     query.CommonHeader=FrameHeader(0x55,funcPara,self.lowid,self.highid)
     query.CommonTail=self.tail
     self.outPoint.write(bytearray(query))