Skip to content

Commit

Permalink
Merge pull request #1730 from lboue/patch-1
Browse files Browse the repository at this point in the history
Add temperature_sensor Endpoint
  • Loading branch information
limengdu authored Oct 8, 2024
2 parents d5659d3 + 15637d8 commit ad55369
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,13 @@ The device can be customized by editing the endpoint/device_type creating in the
endpoint_t *endpoint = on_off_light::create(node, &light_config, ENDPOINT_FLAG_NONE);
```

- temperature_sensor:

```cpp
esp_matter::endpoint::temperature_sensor::config_t temperature_sensor_config;
endpoint_t *endpoint = temperature_sensor::create(node, &temperature_sensor_config, ENDPOINT_FLAG_NONE, NULL);
```

- fan:

```cpp
Expand Down

0 comments on commit ad55369

Please sign in to comment.