Temperature Entity

See the Temperature Entity for generic information.

group TemperatureEntity

This entity is only available on certain modules, and provides a temperature reading in microcelsius.

void temperature_getValue(unsigned int *id, struct Result *result, const int index)

Get the modules temperature in micro-C

The result parameter will output the following fields:

Parameters:
  • id – ID assigned through “module_createStem”

  • result – Output object containing result code and the requested value if successful.

  • index – The index of the entity in question.

void temperature_getValueMin(unsigned int *id, struct Result *result, const int index)

Get the module’s minimum temperature in micro-C since the last power cycle.

The result parameter will output the following fields:

Parameters:
  • id – ID assigned through “module_createStem”

  • result – Output object containing result code and the requested value if successful.

  • index – The index of the entity in question.

void temperature_getValueMax(unsigned int *id, struct Result *result, const int index)

Get the module’s maximum temperature in micro-C since the last power cycle.

The result parameter will output the following fields:

Parameters:
  • id – ID assigned through “module_createStem”

  • result – Output object containing result code and the requested value if successful.

  • index – The index of the entity in question.