get parameter values
Posted: Mon May 24, 2021 9:28 pm
Hi There
I have a parameter that I have created-
I am controlling this parameter through a schedule (on at 5am and off at 5pm). And I am trying to get the value of this parameter, how do I do this?
I tried
But I am unsure how to get value of the parameter from this.
Regards Darryl
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