C# Class Q42.HueApi.LocalHueClient

Partial HueClient, contains requests to the /api/ url
ファイルを表示 Open project: Q42/Q42.HueApi Class Usage Examples

Public Methods

Method Description
CheckConnection ( ) : Task
LocalHueClient ( string ip ) : System

Initialize with Bridge IP

LocalHueClient ( string ip, string appKey ) : System

Initialize with Bridge IP and AppKey

RegisterAsync ( string applicationName, string deviceName ) : Task

Register your applicationName and deviceName at the Hue Bridge.

Private Methods

Method Description
CheckValidIp ( string ip ) : void

Check if the provided IP is valid by using it in an URI to the Hue Bridge

Method Details

CheckConnection() public method

public CheckConnection ( ) : Task
return Task

LocalHueClient() public method

Initialize with Bridge IP
public LocalHueClient ( string ip ) : System
ip string
return System

LocalHueClient() public method

Initialize with Bridge IP and AppKey
public LocalHueClient ( string ip, string appKey ) : System
ip string
appKey string
return System

RegisterAsync() public method

Register your applicationName and deviceName at the Hue Bridge.
or is null. or aren't long enough, are empty or contains spaces.
public RegisterAsync ( string applicationName, string deviceName ) : Task
applicationName string The name of your app.
deviceName string The name of the device.
return Task