logger.debug("{} setting movingAverage: {}", LoggerConstants.TFINIT,
tfConfig.getMovingAverage());
setMovingAverage(tfConfig.getMovingAverage());
}
try {
tinkerforgeDevice = new BrickletDistanceUS(getUid(), getIpConnection());
tinkerforgeDevice.setMovingAverage(getMovingAverage());
tinkerforgeDevice.setDistanceCallbackPeriod(getCallbackPeriod());
listener = new DistanceListener();
tinkerforgeDevice.addDistanceListener(listener);
fetchSensorValue();