import inet.ipaddr.IPAddress;
/**
- * The {@link ServerHandler} is a base abstract class for all devices made available by the FreeboxOs bridge
+ * The {@link ApiConsumerHandler} is a base abstract class for all devices made available by the FreeboxOs bridge
*
* @author Gaƫl L'hopital - Initial contribution
*/
if (bridgeHandler == null) {
return;
}
+ initializeOnceBridgeOnline(bridgeHandler);
+ }
+ private void initializeOnceBridgeOnline(FreeboxOsHandler bridgeHandler) {
Map<String, String> properties = editProperties();
if (properties.isEmpty()) {
try {
@Override
public void bridgeStatusChanged(ThingStatusInfo bridgeStatusInfo) {
- if (checkBridgeHandler() != null) {
- startRefreshJob();
+ FreeboxOsHandler bridgeHandler = checkBridgeHandler();
+ if (bridgeHandler != null) {
+ initializeOnceBridgeOnline(bridgeHandler);
} else {
stopJobs();
}