C# Class HueLightning.API.HueBridge

The Bridge is the base station that manages all lights in the house
ファイルを表示 Open project: Silveryard/SmartHome Class Usage Examples

Public Properties

Property Type Description
BaseUrl string

Public Methods

Method 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 method

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
return bool

HueBridge() public method

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
return System

Property Details

BaseUrl public_oe property

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