docs: def main():
      """
      Example application that prints messages from the panel to the terminal.
      """
      try:
          # Retrieve the first USB device
          device = AlarmDecoder(USBDevice.find())
  
          # Set up an event handler and open the device
          device.on_message += handle_message
          with device.open():
              while True:
                  time.sleep(1)
  
      except Exception as ex:
          print('Exception:', ex)