To see the messages FROM the panel you would want to override the on_message event, as such:
- Code: Select all
# Set up an event handler and open the device
device.on_message += handle_message
And you definitely don't want to keep assigning your event handlers in your loop as you are with the on_sending_received message - that will result in some weirdness.
Then define your message handler function as such:
- Code: Select all
def handle_message(sender, message):
"""
Handles message events from the AlarmDecoder.
"""
print sender, message.raw
It will print the "raw" message.
You can find the API Documentation here:
http://alarmdecoder.readthedocs.org/en/ ... rmdecoder/
Not an employee of the company. Just here to help and keep things clean.