C# 클래스 DeviceHive.CommonEquipment.Switch

Definition of a switch equipment
Switch represents a varitey of simple 2-state equipment like LEDs, endswitches, buttons, etc.
상속: EquipmentEngine
파일 보기 프로젝트 열기: devicehive/devicehive-.net-mf

공개 메소드들

메소드 설명
OnCommand ( DeviceCommand cmd ) : bool

Sets switch value according to input command

Register ( ) : bool

Registers the switch

SendNotification ( int value ) : bool

Sends switch change notification

Switch ( DeviceEngine dev, Cpu pin, string Code, bool InitialState ) : System

Constructs a switch by given parameters

비공개 메소드들

메소드 설명
SetValue ( int i, DeviceCommand cmd ) : void

Sets switch value

메소드 상세

OnCommand() 공개 메소드

Sets switch value according to input command
public OnCommand ( DeviceCommand cmd ) : bool
cmd DeviceCommand Input command
리턴 bool

Register() 공개 메소드

Registers the switch
public Register ( ) : bool
리턴 bool

SendNotification() 공개 메소드

Sends switch change notification
public SendNotification ( int value ) : bool
value int switch value
리턴 bool

Switch() 공개 메소드

Constructs a switch by given parameters
public Switch ( DeviceEngine dev, Cpu pin, string Code, bool InitialState ) : System
dev DeviceEngine Parent device
pin Microsoft.SPOT.Hardware.Cpu Device pin number
Code string Equipment code
InitialState bool Initial state
리턴 System