C# 클래스 Contrequarte.SmartPlugFinder.DeviceFinder

파일 보기 프로젝트 열기: contrequarte/SmartPlugSP2101W 1 사용 예제들

공개 메소드들

메소드 설명
DeviceFinder ( long sendingPort, long listeningPort ) : System
DeviceFinder ( long sendingPort, long listeningPort, int timeoutPeriod ) : System
FindDevices ( IPAddress ipAddressOfSender ) : void
ShowIt ( ) : void

비공개 메소드들

메소드 설명
GetSmartPlugDetails ( byte smartplugUdpDataGram ) : SmartPlugDetails

Evaluating the UDP datagram received to get model, sw version and name of a smart plug

ReceiveSmartPlugCallBack ( IAsyncResult ar ) : void
ReturnStringValue ( byte smartplugUdpDataGram, int startAddress ) : string
SendHelloToPlugs ( IPAddress broadcastAddress, UdpClient udpClient ) : void
TimeCallBack ( object o ) : void

메소드 상세

DeviceFinder() 공개 메소드

public DeviceFinder ( long sendingPort, long listeningPort ) : System
sendingPort long
listeningPort long
리턴 System

DeviceFinder() 공개 메소드

public DeviceFinder ( long sendingPort, long listeningPort, int timeoutPeriod ) : System
sendingPort long
listeningPort long
timeoutPeriod int
리턴 System

FindDevices() 공개 메소드

public FindDevices ( IPAddress ipAddressOfSender ) : void
ipAddressOfSender System.Net.IPAddress
리턴 void

ShowIt() 공개 정적인 메소드

public static ShowIt ( ) : void
리턴 void