LPCconnector/LPCAppObject.py
changeset 44 a6577420a27b
parent 42 30eae94f35f7
child 46 c6b7d4c176c2
equal deleted inserted replaced
43:003a9ae0cf66 44:a6577420a27b
    29 
    29 
    30 class LPCAppObject(LPCObject):
    30 class LPCAppObject(LPCObject):
    31     def connect(self,comport):
    31     def connect(self,comport):
    32         self.SerialConnection = LPCAppProto(comport,#number
    32         self.SerialConnection = LPCAppProto(comport,#number
    33                                          115200, #speed
    33                                          115200, #speed
    34                                          2)      #timeout
    34                                          5)      #timeout
    35 
    35 
    36     def StartPLC(self, debug=False):
    36     def StartPLC(self, debug=False):
    37         self.HandleSerialTransaction(STARTTransaction())
    37         self.HandleSerialTransaction(STARTTransaction())
    38             
    38             
    39     def StopPLC(self):
    39     def StopPLC(self):