MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / getState

Method getState

dependencies/hueplusplus-1.0.0/src/Sensor.cpp:197–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197nlohmann::json Sensor::getState() const
198{
199 return state.getValue().at("state");
200}
201void Sensor::setStateAttribute(const std::string& key, const nlohmann::json& value)
202{
203 sendPutRequest("/state", nlohmann::json {{key, value}}, CURRENT_FILE_INFO);

Callers 6

TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TEST_FFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80

Calls 1

getValueMethod · 0.80

Tested by 6

TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TEST_FFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64