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

Method SensorPlugin

lib/SensorPlugin/src/SensorPlugin.h:77–87  ·  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 SensorPlugin(const char* name, uint16_t uid) :
78 PluginWithConfig(name, uid, FILESYSTEM),
79 m_view(),
80 m_mutex(),
81 m_sensorIdx(0U),
82 m_channelIdx(0U),
83 m_sensorChannel(nullptr),
84 m_hasTopicChanged(false)
85 {
86 (void)m_mutex.create();
87 }
88
89 /**
90 * Destroys the plugin.

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected