Exemple #1
0
 public DeviceBuilder EnableDiscovery(string headerText, string description, NEEODiscoveryFunc controller)
 {
     _logger.LogDebug("enable discovery ");
     if (headerText == null || description == null)
     {
         throw new NEEOException("INVALID_DISCOVERY_PARAMETER");
     }
     if (_setup != null && _setup.Discovery)
     {
         throw new NEEOException("DISCOVERHANLDER_ALREADY_DEFINED");
     }
     _setup = new NEEODevice.SetupPar(headerText, description);
     _discovery.Add(new Controller(controller));
     return(this);
 }
Exemple #2
0
 public Controller(NEEODiscoveryFunc discover)
 {
     Discover = discover;
 }