Added a GPIO to power on/off for external I2C sensor(s) (with LEDs)
Dependencies: UniGraphic mbed vt100
edge_temp Class Reference
edge_temp edge_sensor to measre temperature sensors More...
#include <edge_temp.h>
Inherits edge_sensor.
Public Member Functions | |
| edge_temp (LM75B *temp1, SMTC502AT *temp2, SMTC502AT *temp3, LM75B *temp4) | |
| constructor | |
| ~edge_temp (void) | |
| destructor | |
| virtual void | reset (void) |
| reset and clear the internal values | |
| virtual void | prepare (void) |
| prepare for sampling | |
| virtual int | sample (void) |
| sample measure and store sensor values | |
| virtual int | deliver (void) |
| deliver the values to the afero cloud | |
| virtual void | show (void) |
| Show the value(s) in the display (TFT) | |
| virtual void | setId (uint16_t id) |
| assign _id manually | |
| virtual void | enable (void) |
| enable the edge_sensor | |
| virtual void | disable (void) |
| disable the edge_sensor | |
| virtual bool | isEnabled (void) |
| test if the edge_sensor is enabled (or not) | |
| virtual void | toJson (char *buf) |
| toJson convert sampled data to json format | |
| virtual void | displayTime (int32_t ts) |
| display timestamp in human readable format ts int32_t timestamp value to display | |
| void | setInterval (uint16_t interval) |
| setInterval assign sampling interval time (in sec) | |
| uint16_t | getInterval (void) |
| getInterval get sampling interval time (in sec) | |
| int | getStatus (void) |
| getStatus get current status of the state machine | |
| int | advanceStatus (void) |
| advanceStatus proceed status into the next state | |
| virtual int | runStateMachine (void) |
| runStateMachine run the statemachine for single cycle | |
Detailed Description
edge_temp edge_sensor to measre temperature sensors
Definition at line 12 of file edge_temp.h.
Constructor & Destructor Documentation
| ~edge_temp | ( | void | ) |
destructor
Definition at line 21 of file edge_temp.cpp.
Member Function Documentation
| int advanceStatus | ( | void | ) | [inherited] |
advanceStatus proceed status into the next state
- Returns:
- advanced status
| int deliver | ( | void | ) | [virtual] |
deliver the values to the afero cloud
Reimplemented from edge_sensor.
Definition at line 64 of file edge_temp.cpp.
| void disable | ( | void | ) | [virtual, inherited] |
disable the edge_sensor
Definition at line 36 of file edge_sensor.cpp.
| void displayTime | ( | int32_t | ts ) | [virtual, inherited] |
display timestamp in human readable format ts int32_t timestamp value to display
Definition at line 70 of file edge_sensor.cpp.
| void enable | ( | void | ) | [virtual, inherited] |
enable the edge_sensor
Definition at line 31 of file edge_sensor.cpp.
| uint16_t getInterval | ( | void | ) | [inherited] |
getInterval get sampling interval time (in sec)
- Returns:
- the interval time in uint16_t
Definition at line 103 of file edge_sensor.cpp.
| int getStatus | ( | void | ) | [inherited] |
getStatus get current status of the state machine
- Returns:
- current status as int
Definition at line 108 of file edge_sensor.cpp.
| bool isEnabled | ( | void | ) | [virtual, inherited] |
test if the edge_sensor is enabled (or not)
- Returns:
- true: the sensor is enabled false: the sensor is disabled
Definition at line 41 of file edge_sensor.cpp.
| void prepare | ( | void | ) | [virtual] |
| void reset | ( | void | ) | [virtual] |
reset and clear the internal values
Reimplemented from edge_sensor.
Definition at line 37 of file edge_temp.cpp.
| int runStateMachine | ( | void | ) | [virtual, inherited] |
runStateMachine run the statemachine for single cycle
- Returns:
- the result status
Definition at line 122 of file edge_sensor.cpp.
| int sample | ( | void | ) | [virtual] |
sample measure and store sensor values
- Returns:
- 0: success non-0: failure
Reimplemented from edge_sensor.
Definition at line 45 of file edge_temp.cpp.
| virtual void setId | ( | uint16_t | id ) | [virtual, inherited] |
assign _id manually
Definition at line 32 of file edge_sensor.h.
| void setInterval | ( | uint16_t | interval ) | [inherited] |
setInterval assign sampling interval time (in sec)
- Parameters:
-
interval uint16_t the value to assign
Definition at line 98 of file edge_sensor.cpp.
| void show | ( | void | ) | [virtual] |
Show the value(s) in the display (TFT)
Reimplemented from edge_sensor.
Definition at line 105 of file edge_temp.cpp.
| void toJson | ( | char * | buf ) | [virtual, inherited] |
toJson convert sampled data to json format
- Parameters:
-
buf char* string buf to store the json string
Definition at line 93 of file edge_sensor.cpp.
Generated on Wed Jul 13 2022 12:25:10 by
1.7.2
La Suno