/* (non-Javadoc) * @see org.openhab.core.binding.AbstractBinding#allBindingsChanged(org.openhab.core.binding.BindingProvider) */ @Override public void allBindingsChanged(BindingProvider provider) { logger.trace("allBindingsChanged() msg received."); if (mKNXConnectionEstablished) { logger.debug("Initializing readable DPs."); if (provider instanceof KNXBindingProvider) { KNXBindingProvider knxProvider = (KNXBindingProvider) provider; mKNXBusReaderScheduler.clear(); for (Datapoint datapoint : knxProvider.getReadableDatapoints()) { mKNXBusReaderScheduler.readOnce(datapoint); int autoRefreshTimeInSecs = knxProvider.getAutoRefreshTime(datapoint); if (autoRefreshTimeInSecs > 0) { if (!mKNXBusReaderScheduler.scheduleRead( datapoint, knxProvider.getAutoRefreshTime(datapoint))) { logger.warn( "Couldn't add to KNX bus reader scheduler (allBindingsChanged, datapoint='{}')", datapoint); } } } } } }
/* (non-Javadoc) * @see org.openhab.binding.knx.internal.connection.KNXConnectionListener#connectionLost() */ @Override public void connectionLost() { logger.trace("connectionLost() msg received."); mKNXConnectionEstablished = false; mKNXBusReaderScheduler.clear(); }