use of org.eclipse.smarthome.config.discovery.mdns.MDNSDiscoveryParticipant in project smarthome by eclipse.
the class MDNSDiscoveryService method scan.
private void scan() {
for (MDNSDiscoveryParticipant participant : participants) {
ServiceInfo[] services = mdnsClient.list(participant.getServiceType());
logger.debug("{} services found for {}", services.length, participant.getServiceType());
for (ServiceInfo service : services) {
DiscoveryResult result = participant.createResult(service);
if (result != null) {
thingDiscovered(result);
}
}
}
for (org.eclipse.smarthome.io.transport.mdns.discovery.MDNSDiscoveryParticipant participant : oldParticipants) {
ServiceInfo[] services = mdnsClient.list(participant.getServiceType());
logger.debug("{} services found for {}", services.length, participant.getServiceType());
for (ServiceInfo service : services) {
DiscoveryResult result = participant.createResult(service);
if (result != null) {
thingDiscovered(result);
}
}
}
}
Aggregations