Commit 28b21138 authored by Federico Sismondi's avatar Federico Sismondi

fix bug: serialconn class was not overriding on_message()

parent a33eeab5
......@@ -77,6 +77,17 @@ class SerialConsumer(BaseConsumer):'%s bootstraped.' %
def _on_message(self, message):
msg_type = type(message)
assert msg_type in self.dispatcher.keys(), 'Event message couldnt be dispatched %s' % repr(message)
"Consumer specialized handler <{consumer_name}> got: {message}".format(
def handle_data(self, message):
Forwards data packets from AMQP BUS to serial interface
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 to comment