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

Method getConfiguration

lib/SensorPlugin/src/SensorPlugin.cpp:205–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203 *****************************************************************************/
204
205void SensorPlugin::getConfiguration(JsonObject& jsonCfg) const
206{
207 MutexGuard<MutexRecursive> guard(m_mutex);
208 bool isAvailable = (nullptr != m_sensorChannel) ? true : false;
209
210 jsonCfg["sensorIndex"] = m_sensorIdx;
211 jsonCfg["channelIndex"] = m_channelIdx;
212 jsonCfg["isAvailable"] = isAvailable;
213}
214
215bool SensorPlugin::setConfiguration(const JsonObjectConst& jsonCfg)
216{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected