C# Class Q42.HueApi.LocalHueClient

Partial HueClient, contains requests to the /api/ url
Afficher le fichier Open project: Q42/Q42.HueApi Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public CheckConnection ( ) : Task
Résultat Task

LocalHueClient() public méthode

Initialize with Bridge IP
public LocalHueClient ( string ip ) : System
ip string
Résultat System

LocalHueClient() public méthode

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

RegisterAsync() public méthode

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.
Résultat Task