* Constructs the plugin. * * @param[in] name Plugin name (must exist over lifetime) * @param[in] uid Unique id */
| 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. |