MCPcopy Create free account
hub / github.com/BlueAndi/Pixelix / TempHumidPlugin

Method TempHumidPlugin

lib/TempHumidPlugin/src/TempHumidPlugin.h:77–92  ·  view source on GitHub ↗

* Constructs the plugin. * * @param[in] name Plugin name (must exist over lifetime) * @param[in] uid Unique id */

Source from the content-addressed store, hash-verified

75 * @param[in] uid Unique id
76 */
77 TempHumidPlugin(const char* name, uint16_t uid) :
78 Plugin(name, uid),
79 m_view(),
80 m_page(TEMPERATURE),
81 m_pageTime(DEFAULT_PAGE_TIME),
82 m_timer(),
83 m_mutex(),
84 m_humidity(0.0F),
85 m_temperature(0.0F),
86 m_sensorUpdateTimer(),
87 m_slotInterf(nullptr),
88 m_temperatureSensorCh(nullptr),
89 m_humiditySensorCh(nullptr)
90 {
91 (void)m_mutex.create();
92 }
93
94 /**
95 * Enumeration to choose the page to be displayed.

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected