I have a parameter that I have created-
Code: Select all
sched_param = esp_rmaker_power_param_create("Schedule", DEFAULT_POWER);
esp_rmaker_device_add_param(switch_device, sched_param);
esp_rmaker_device_assign_primary_param(switch_device, sched_param);
I tried
Code: Select all
sched_param = esp_rmaker_device_get_param_by_name(switch_device, "Schedule");
Regards Darryl