Skip to content

Commit

Permalink
Add support for light sensor (#14920)
Browse files Browse the repository at this point in the history
  • Loading branch information
nivi-apple authored and pull[bot] committed Jan 4, 2024
1 parent 0896cb5 commit 2243746
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/all-clusters-app/esp32/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,12 @@ void SetupPretendDevices()
AddCluster("Humidity Sensor");
AddAttribute("MeasuredValue", "30");
app::Clusters::RelativeHumidityMeasurement::Attributes::MeasuredValue::Set(1, static_cast<int16_t>(30 * 100));

AddDevice("Light Sensor");
AddEndpoint("External");
AddCluster("Illuminance Measurement");
AddAttribute("MeasuredValue", "1000");
app::Clusters::IlluminanceMeasurement::Attributes::MeasuredValue::Set(1, static_cast<int16_t>(1000));
}

WiFiWidget pairingWindowLED;
Expand Down

0 comments on commit 2243746

Please sign in to comment.