‪Black Box
Static Public Member Functions | Static Private Member Functions | Private Attributes
BBThermostatSensor.Program Class Reference

Static Public Member Functions

static void Tick (object stateInfo)
 ‪This method executes the thermostat data request on 10 sec interval More...
 

Static Private Member Functions

static void Main (string[] args)
 ‪this is the main method for the BBthermostatSensor More...
 

Private Attributes

const int timerInerval = 60000
 

Detailed Description

Definition at line 42 of file Program.cs.

Member Function Documentation

◆ Main()

static void BBThermostatSensor.Program.Main ( string []  args)
staticprivate

‪this is the main method for the BBthermostatSensor

Parameters
args

Definition at line 59 of file Program.cs.

60  {
61  TimerCallback callback = new TimerCallback(‪Tick);
62 
63  // create a one second timer tick
64  System.Threading.Timer stateTimer = new System.Threading.Timer(callback, null, 0, ‪timerInerval);
65 
66  // loop here forever
67  for (; ; )
68  {
69  // add a sleep for 100 mSec to reduce CPU usage
70  Thread.Sleep(100);
71  }
72  }
‪const int timerInerval
Definition: Program.cs:44
‪static void Tick(object stateInfo)
‪This method executes the thermostat data request on 10 sec interval
Definition: Program.cs:50

◆ Tick()

static void BBThermostatSensor.Program.Tick ( object  stateInfo)
static

‪This method executes the thermostat data request on 10 sec interval

Parameters
stateInfo

Definition at line 50 of file Program.cs.

Referenced by BBThermostatSensor.Program.Main().

Field Documentation

◆ timerInerval

const int BBThermostatSensor.Program.timerInerval = 60000
private

Definition at line 44 of file Program.cs.

Referenced by BBThermostatSensor.Program.Main().


The documentation for this class was generated from the following file: