| 203 | *****************************************************************************/ |
| 204 | |
| 205 | void 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 | |
| 215 | bool SensorPlugin::setConfiguration(const JsonObjectConst& jsonCfg) |
| 216 | { |
nothing calls this directly
no outgoing calls
no test coverage detected