Commit cee84296 by Oliver Pinter

fix serial line receive

discussed with: bd
parent 33dccfbd
......@@ -6,7 +6,7 @@ logger = logging.getLogger()
class SerialLineReceiverBase(LineReceiver, object):
delimiter = '\r'
delimiter = '\n'
MAX_LENGTH = 1024*1024*128
def send_response(self, response, args):
......@@ -23,6 +23,9 @@ class SerialLineReceiverBase(LineReceiver, object):
def handle_response(self, response, args):
raise NotImplementedError("Subclass must implement abstract method")
def dataReceivedd(self, data):
print data
def lineReceived(self, data):
try:
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