Commit cee84296 by Oliver Pinter

fix serial line receive

discussed with: bd
parent 33dccfbd
...@@ -6,7 +6,7 @@ logger = logging.getLogger() ...@@ -6,7 +6,7 @@ logger = logging.getLogger()
class SerialLineReceiverBase(LineReceiver, object): class SerialLineReceiverBase(LineReceiver, object):
delimiter = '\r' delimiter = '\n'
MAX_LENGTH = 1024*1024*128 MAX_LENGTH = 1024*1024*128
def send_response(self, response, args): def send_response(self, response, args):
...@@ -23,6 +23,9 @@ class SerialLineReceiverBase(LineReceiver, object): ...@@ -23,6 +23,9 @@ class SerialLineReceiverBase(LineReceiver, object):
def handle_response(self, response, args): def handle_response(self, response, args):
raise NotImplementedError("Subclass must implement abstract method") raise NotImplementedError("Subclass must implement abstract method")
def dataReceivedd(self, data):
print data
def lineReceived(self, data): def lineReceived(self, data):
try: try:
data = json.loads(data) data = json.loads(data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment