| 143 | } |
| 144 | |
| 145 | bool Sensor::hasUserTest() const |
| 146 | { |
| 147 | return state.getValue().at("config").count("usertest") != 0; |
| 148 | } |
| 149 | void Sensor::setUserTest(bool enabled) |
| 150 | { |
| 151 | sendPutRequest("/config", nlohmann::json {{"usertest", enabled}}, CURRENT_FILE_INFO); |