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

Method hasReachable

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

Source from the content-addressed store, hash-verified

122 sendPutRequest("/config", nlohmann::json {{"alert", alertStr}}, CURRENT_FILE_INFO);
123}
124bool Sensor::hasReachable() const
125{
126 return state.getValue().at("config").count("reachable") != 0;
127}
128bool Sensor::isReachable() const
129{
130 // If not present, always assume it is reachable (for daylight sensor)

Callers 1

TEST_FFunction · 0.80

Calls 2

getValueMethod · 0.80
countMethod · 0.45

Tested by 1

TEST_FFunction · 0.64