Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse SmartHome » Problem with Discovery Service
Problem with Discovery Service [message #1736453] Wed, 29 June 2016 12:59 Go to next message
Paolo Marini is currently offline Paolo MariniFriend
Messages: 2
Registered: June 2016
Junior Member
Hi All,

i'm developing a binding to implement my domotic system in eclipse smart home. In my haldler factory, i register my service using the following code:

private synchronized void registerDomosIntegraDiscoveryService(DomosIntegraBridgeHandler bridgeHandler) {
DomosIntegraDiscoveryService discoveryService = new DomosIntegraDiscoveryService(bridgeHandler);
discoveryService.activate();
this.discoveryServiceRegs.put(bridgeHandler.getThing().getUID(), bundleContext
.registerService(DiscoveryService.class.getName(), discoveryService, new Hashtable<String, Object>()));

}

Now, when i recall in my openhab the binding the console answer :
- No discovery service for binding id DomosIntegra eccc.

I check also other binding code and everiting seem the same.
Can someone help me?

Re: Problem with Discovery Service [message #1736800 is a reply to message #1736453] Fri, 01 July 2016 20:20 Go to previous message
Kai Kreuzer is currently offline Kai KreuzerFriend
Messages: 673
Registered: December 2011
Senior Member
This code is obviously only executed once a bridge handler is successfully started, i.e. you need to have a Bridge in place already. Only then this discovery service is registered. Can you confirm that you have the Bridge? Did you set a breakpoint and have seen that this code is successfully executed?
Previous Topic:Extension of the DiscoveryResult
Next Topic:Problem to open a serial com port for binding
Goto Forum:
  


Current Time: Thu Mar 28 09:22:15 GMT 2024

Powered by FUDForum. Page generated in 0.04346 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top