| 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); |
| 152 | } |
| 153 | |
| 154 | bool Sensor::hasURL() const |
| 155 | { |