C# Class SensorShare.Compact.SensorShareServer

Afficher le fichier Open project: MarkPaxton/SensorShare3

Protected Properties

Свойство Type Description
asciiReadingDBConnection System.Data.SQLite.SQLiteConnection
readASCIIFailCount int

Méthodes publiques

Méthode Description
InitialiseWiFi ( ) : void
SensorShareServer ( ) : System
SetUpWorkings ( ) : void

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

InitialiseWiFi() public méthode

public InitialiseWiFi ( ) : void
Résultat void

ReadASCIICommandFailed() protected méthode

protected ReadASCIICommandFailed ( bool failed ) : void
failed bool
Résultat void

ReadASCIITimerTimeout() protected méthode

protected ReadASCIITimerTimeout ( object o ) : void
o object
Résultat void

ResetReadASCIITimer() protected méthode

protected ResetReadASCIITimer ( ) : void
Résultat void

SensorShareServer() public méthode

public SensorShareServer ( ) : System
Résultat System

SetUpWorkings() public méthode

public SetUpWorkings ( ) : void
Résultat void

StartTakingReadings() protected méthode

protected StartTakingReadings ( ) : void
Résultat void

StopTakingReadings() protected méthode

protected StopTakingReadings ( ) : void
Résultat void

processASCIIReading() protected méthode

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

Property Details

asciiReadingDBConnection protected_oe property

protected SQLiteConnection,System.Data.SQLite asciiReadingDBConnection
Résultat System.Data.SQLite.SQLiteConnection

readASCIIFailCount protected_oe property

protected int readASCIIFailCount
Résultat int