protected AbstractMonitor( final Object conn, final String name, final KNXMediumSettings settings) { this.conn = conn; this.name = name; logger = LogManager.getManager().getLogService("calimero.link." + getName()); if (settings instanceof PLSettings) logger.info("power-line medium, assuming BCU has extended busmonitor enabled"); setKNXMedium(settings); notifier = new MonitorNotifier(this, logger, settings instanceof PLSettings); notifier.start(); }
public final void setDecodeRawFrames(final boolean decode) { notifier.decode = decode; logger.info((decode ? "enable" : "disable") + " decoding of raw frames"); }