C# 클래스 SensorShare.Compact.SensorShareServer

파일 보기 프로젝트 열기: MarkPaxton/SensorShare3

보호된 프로퍼티들

프로퍼티 타입 설명
asciiReadingDBConnection System.Data.SQLite.SQLiteConnection
readASCIIFailCount int

공개 메소드들

메소드 설명
InitialiseWiFi ( ) : void
SensorShareServer ( ) : System
SetUpWorkings ( ) : void

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

ReadASCIICommandFailed ( bool failed ) : void
ReadASCIITimerTimeout ( object o ) : void
ResetReadASCIITimer ( ) : void
StartTakingReadings ( ) : void
StopTakingReadings ( ) : void
processASCIIReading ( byte dataBytes ) : void

When an ascii reading is reveived this function is called from logbook.cs and processes it

비공개 메소드들

메소드 설명
ConfirmSensors ( ) : void
ConnectLogbookAndIdentifySensors ( ) : void
DeviceManagement_NetworkConnected ( ) : void
DoUpdateTextBox ( TextBox box, String text, int lines ) : void
InitialiseLogbook ( ) : void
InitialiseSensorData ( ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

LogbookThread ( ) : void
SendAliveMessage ( object ob ) : void
SensorNetServer_Closed ( object sender, EventArgs e ) : void
SensorNetServer_Closing ( object sender, CancelEventArgs e ) : void
SensorShareServer_Load ( object sender, EventArgs e ) : void
ShutdownSensorServer ( ) : void

Terminate the varous components of the application

Start ( ) : void
StartServer ( ) : void
StopWorkings ( ) : void
UpdateOverallStats ( SQLiteConnection database ) : void
UpdateSensorTypes ( ) : void

Called when sensor ids and definitions are received - when both are received updates the server data and if server is starting, sends and invitation and begins taking readings

UpdateServerDescription ( ) : void
configMenuItem_Click ( object sender, EventArgs e ) : void
connectLogbook ( ) : void
disconnectLogbook ( ) : void
exitMenuItem_Click ( object sender, EventArgs e ) : void
log_LogMessage ( object sender, LogMessageEventArgs e ) : void
logbook_BatteryTest_Result ( object o, ScienceScope.CommandResultEventArgs e ) : void
logbook_CommandFailed ( object sender, ScienceScope.CommandFailedEventArgs ev ) : void
logbook_CommandResult ( object o, ScienceScope.CommandResultEventArgs e ) : void
logbook_CommandTimeout ( object o, ScienceScope.CommandTimeoutEventArgs ev ) : void
logbook_Disconnected ( object o, EventArgs ev ) : void
logbook_GetBatteryLevel_Result ( object o, ScienceScope.CommandResultEventArgs e ) : void
logbook_GetSensorRanges_Result ( object o, ScienceScope.CommandResultEventArgs e ) : void
logbook_IdentifySensors_Result ( object o, ScienceScope.CommandResultEventArgs e ) : void
logbook_ReadASCII_Result ( object o, ScienceScope.CommandResultEventArgs ev ) : void
logbook_identifySensors ( ) : void
logbook_sendCommand ( ScienceScope.Logbook command ) : void
networkNode_MessageReceived ( object sender, MessageEventArgs args ) : void
startReadingsMenuItem_Click ( object sender, EventArgs e ) : void

메소드 상세

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
리턴 void

InitialiseWiFi() 공개 메소드

public InitialiseWiFi ( ) : void
리턴 void

ReadASCIICommandFailed() 보호된 메소드

protected ReadASCIICommandFailed ( bool failed ) : void
failed bool
리턴 void

ReadASCIITimerTimeout() 보호된 메소드

protected ReadASCIITimerTimeout ( object o ) : void
o object
리턴 void

ResetReadASCIITimer() 보호된 메소드

protected ResetReadASCIITimer ( ) : void
리턴 void

SensorShareServer() 공개 메소드

public SensorShareServer ( ) : System
리턴 System

SetUpWorkings() 공개 메소드

public SetUpWorkings ( ) : void
리턴 void

StartTakingReadings() 보호된 메소드

protected StartTakingReadings ( ) : void
리턴 void

StopTakingReadings() 보호된 메소드

protected StopTakingReadings ( ) : void
리턴 void

processASCIIReading() 보호된 메소드

When an ascii reading is reveived this function is called from logbook.cs and processes it
protected processASCIIReading ( byte dataBytes ) : void
dataBytes byte
리턴 void

프로퍼티 상세

asciiReadingDBConnection 보호되어 있는 프로퍼티

protected SQLiteConnection,System.Data.SQLite asciiReadingDBConnection
리턴 System.Data.SQLite.SQLiteConnection

readASCIIFailCount 보호되어 있는 프로퍼티

protected int readASCIIFailCount
리턴 int