mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
components/esp_matter: add closure_control cluster in esp_matter
This commit is contained in:
@@ -3013,5 +3013,28 @@ command_t *create_play_chime_sound(cluster_t *cluster)
|
||||
} /* command */
|
||||
} /* chime */
|
||||
|
||||
namespace closure_control {
|
||||
namespace command {
|
||||
command_t *create_stop(cluster_t *cluster)
|
||||
{
|
||||
return esp_matter::command::create(cluster, ClosureControl::Commands::Stop::Id,
|
||||
COMMAND_FLAG_ACCEPTED, NULL);
|
||||
}
|
||||
|
||||
command_t *create_move_to(cluster_t *cluster)
|
||||
{
|
||||
return esp_matter::command::create(cluster, ClosureControl::Commands::MoveTo::Id,
|
||||
COMMAND_FLAG_ACCEPTED, NULL);
|
||||
}
|
||||
|
||||
command_t *create_calibrate(cluster_t *cluster)
|
||||
{
|
||||
return esp_matter::command::create(cluster, ClosureControl::Commands::Calibrate::Id,
|
||||
COMMAND_FLAG_ACCEPTED, NULL);
|
||||
}
|
||||
|
||||
} /* command */
|
||||
} /* closure_control */
|
||||
|
||||
} /* cluster */
|
||||
} /* esp_matter */
|
||||
|
||||
Reference in New Issue
Block a user