| 186 | return state.getValue().at("config").count("ledindication") != 0; |
| 187 | } |
| 188 | bool Sensor::getLEDIndication() const |
| 189 | { |
| 190 | return state.getValue().at("config").at("ledindication").get<bool>(); |
| 191 | } |
| 192 | void Sensor::setLEDIndication(bool on) |
| 193 | { |
| 194 | sendPutRequest("/config", nlohmann::json {{"ledindication", on}}, CURRENT_FILE_INFO); |