C# Class SensorShare.Compact.SensorShareServer

Show file Open project: MarkPaxton/SensorShare3

Protected Properties

Property Type Description
asciiReadingDBConnection System.Data.SQLite.SQLiteConnection
readASCIIFailCount int

Public Methods

Method Description
InitialiseWiFi ( ) : void
SensorShareServer ( ) : System
SetUpWorkings ( ) : void

Protected Methods

Method Description
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

Private Methods

Method Description
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

Method Details

Dispose() protected method

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

InitialiseWiFi() public method

public InitialiseWiFi ( ) : void
return void

ReadASCIICommandFailed() protected method

protected ReadASCIICommandFailed ( bool failed ) : void
failed bool
return void

ReadASCIITimerTimeout() protected method

protected ReadASCIITimerTimeout ( object o ) : void
o object
return void

ResetReadASCIITimer() protected method

protected ResetReadASCIITimer ( ) : void
return void

SensorShareServer() public method

public SensorShareServer ( ) : System
return System

SetUpWorkings() public method

public SetUpWorkings ( ) : void
return void

StartTakingReadings() protected method

protected StartTakingReadings ( ) : void
return void

StopTakingReadings() protected method

protected StopTakingReadings ( ) : void
return void

processASCIIReading() protected method

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

Property Details

asciiReadingDBConnection protected property

protected SQLiteConnection,System.Data.SQLite asciiReadingDBConnection
return System.Data.SQLite.SQLiteConnection

readASCIIFailCount protected property

protected int readASCIIFailCount
return int