C# Класс HueLightning.API.HueBridge

The Bridge is the base station that manages all lights in the house
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
BaseUrl string

Открытые методы

Метод Описание
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

Описание методов

CheckConnection() публичный статический Метод

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
Результат bool

HueBridge() публичный Метод

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
Результат System

Описание свойств

BaseUrl публичное свойство

Contains a base url for network communication http://{bridge_ip}/api/{username}
public string BaseUrl
Результат string