C# Class HueLightning.API.HueBridge

The Bridge is the base station that manages all lights in the house
Afficher le fichier Open project: Silveryard/SmartHome Class Usage Examples

Méthodes publiques

Свойство Type Description
BaseUrl string

Méthodes publiques

Méthode Description
CheckConnection ( string ip, string username ) : bool

Checks if the server can connect to a specific bridge. Should be checked before creating an instance

HueBridge ( string ip, string applicationName, string deviceName, string userName ) : System

Creates a new instance and sets the base url

Method Details

CheckConnection() public static méthode

Checks if the server can connect to a specific bridge. Should be checked before creating an instance
public static CheckConnection ( string ip, string username ) : bool
ip string The bridges (local) ip
username string The username the server takes to identify at the bridge
Résultat bool

HueBridge() public méthode

Creates a new instance and sets the base url
public HueBridge ( string ip, string applicationName, string deviceName, string userName ) : System
ip string The bridges ip
applicationName string The used application name
deviceName string The used device name
userName string The used userName
Résultat System

Property Details

BaseUrl public_oe property

Contains a base url for network communication http://{bridge_ip}/api/{username}
public string BaseUrl
Résultat string