C# 클래스 HueLightning.API.HueBridge

The Bridge is the base station that manages all lights in the house
파일 보기 프로젝트 열기: Silveryard/SmartHome 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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