Skip to content

Commit

Permalink
removed background discovery code
Browse files Browse the repository at this point in the history
Signed-off-by: Kai Kreuzer <[email protected]> (github: @kaikreuzer)
  • Loading branch information
kaikreuzer committed Mar 19, 2015
1 parent b0756af commit 3f3e045
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,13 @@ public class NetworkDiscoveryService extends AbstractDiscoveryService {
private final Logger logger = LoggerFactory.getLogger(NetworkDiscoveryService.class);

public NetworkDiscoveryService() {
super(SUPPORTED_THING_TYPES_UIDS, 300);
super(SUPPORTED_THING_TYPES_UIDS, 300, false);
}

public Set<ThingTypeUID> getSupportedThingTypes() {
return SUPPORTED_THING_TYPES_UIDS;
}

@Override
protected void startBackgroundDiscovery() {
new Thread(new Runnable() {
@Override
public void run() {
/* Devices are only discovered on users request */
}
}).start();
}

@Override
protected void startScan() {
logger.debug("Starting Discovery");
Expand Down

0 comments on commit 3f3e045

Please sign in to comment.