@@ -3712,25 +3712,25 @@ attribute_t *create_description(cluster_t *cluster, const char * value, uint16_t
3712
3712
return esp_matter::attribute::create (cluster, PowerSource::Attributes::Description::Id, ATTRIBUTE_FLAG_NONE, esp_matter_char_str ((char *)value, length));
3713
3713
}
3714
3714
3715
- attribute_t *create_wired_assessed_input_voltage (cluster_t *cluster, nullable<uint32_t > value, uint32_t min, uint32_t max)
3715
+ attribute_t *create_wired_assessed_input_voltage (cluster_t *cluster, nullable<uint32_t > value, nullable< uint32_t > min, nullable< uint32_t > max)
3716
3716
{
3717
3717
attribute_t *attribute = esp_matter::attribute::create (cluster, PowerSource::Attributes::WiredAssessedInputVoltage::Id, ATTRIBUTE_FLAG_NULLABLE, esp_matter_nullable_uint32 (value));
3718
3718
if (!attribute) {
3719
3719
ESP_LOGE (TAG, " Could not create attribute" );
3720
3720
return NULL ;
3721
3721
}
3722
- esp_matter::attribute::add_bounds (attribute, esp_matter_uint32 (min), esp_matter_uint32 (max));
3722
+ esp_matter::attribute::add_bounds (attribute, esp_matter_nullable_uint32 (min), esp_matter_nullable_uint32 (max));
3723
3723
return attribute;
3724
3724
}
3725
3725
3726
- attribute_t *create_wired_assessed_input_frequency (cluster_t *cluster, nullable<uint16_t > value, uint16_t min, uint16_t max)
3726
+ attribute_t *create_wired_assessed_input_frequency (cluster_t *cluster, nullable<uint16_t > value, nullable< uint16_t > min, nullable< uint16_t > max)
3727
3727
{
3728
3728
attribute_t *attribute = esp_matter::attribute::create (cluster, PowerSource::Attributes::WiredAssessedInputFrequency::Id, ATTRIBUTE_FLAG_NULLABLE, esp_matter_nullable_uint16 (value));
3729
3729
if (!attribute) {
3730
3730
ESP_LOGE (TAG, " Could not create attribute" );
3731
3731
return NULL ;
3732
3732
}
3733
- esp_matter::attribute::add_bounds (attribute, esp_matter_uint16 (min), esp_matter_uint16 (max));
3733
+ esp_matter::attribute::add_bounds (attribute, esp_matter_nullable_uint16 (min), esp_matter_nullable_uint16 (max));
3734
3734
return attribute;
3735
3735
}
3736
3736
@@ -3739,14 +3739,14 @@ attribute_t *create_wired_current_type(cluster_t *cluster, const uint8_t value)
3739
3739
return esp_matter::attribute::create (cluster, PowerSource::Attributes::WiredCurrentType::Id, ATTRIBUTE_FLAG_NONE, esp_matter_enum8 (value));
3740
3740
}
3741
3741
3742
- attribute_t *create_wired_assessed_current (cluster_t *cluster, nullable<uint32_t > value, uint32_t min, uint32_t max)
3742
+ attribute_t *create_wired_assessed_current (cluster_t *cluster, nullable<uint32_t > value, nullable< uint32_t > min, nullable< uint32_t > max)
3743
3743
{
3744
3744
attribute_t *attribute = esp_matter::attribute::create (cluster, PowerSource::Attributes::WiredAssessedCurrent::Id, ATTRIBUTE_FLAG_NULLABLE, esp_matter_nullable_uint32 (value));
3745
3745
if (!attribute) {
3746
3746
ESP_LOGE (TAG, " Could not create attribute" );
3747
3747
return NULL ;
3748
3748
}
3749
- esp_matter::attribute::add_bounds (attribute, esp_matter_uint32 (min), esp_matter_uint32 (max));
3749
+ esp_matter::attribute::add_bounds (attribute, esp_matter_nullable_uint32 (min), esp_matter_nullable_uint32 (max));
3750
3750
return attribute;
3751
3751
}
3752
3752
@@ -3786,36 +3786,36 @@ attribute_t *create_active_wired_faults(cluster_t *cluster, uint8_t * value, uin
3786
3786
return esp_matter::attribute::create (cluster, PowerSource::Attributes::ActiveWiredFaults::Id, ATTRIBUTE_FLAG_NONE, esp_matter_array (value, length, count));
3787
3787
}
3788
3788
3789
- attribute_t *create_bat_voltage (cluster_t *cluster, nullable<uint32_t > value, uint32_t min, uint32_t max)
3789
+ attribute_t *create_bat_voltage (cluster_t *cluster, nullable<uint32_t > value, nullable< uint32_t > min, nullable< uint32_t > max)
3790
3790
{
3791
3791
attribute_t *attribute = esp_matter::attribute::create (cluster, PowerSource::Attributes::BatVoltage::Id, ATTRIBUTE_FLAG_NULLABLE, esp_matter_nullable_uint32 (value));
3792
3792
if (!attribute) {
3793
3793
ESP_LOGE (TAG, " Could not create attribute" );
3794
3794
return NULL ;
3795
3795
}
3796
- esp_matter::attribute::add_bounds (attribute, esp_matter_uint32 (min), esp_matter_uint32 (max));
3796
+ esp_matter::attribute::add_bounds (attribute, esp_matter_nullable_uint32 (min), esp_matter_nullable_uint32 (max));
3797
3797
return attribute;
3798
3798
}
3799
3799
3800
- attribute_t *create_bat_percent_remaining (cluster_t *cluster, nullable<uint8_t > value, uint8_t min, uint8_t max)
3800
+ attribute_t *create_bat_percent_remaining (cluster_t *cluster, nullable<uint8_t > value, nullable< uint8_t > min, nullable< uint8_t > max)
3801
3801
{
3802
3802
attribute_t *attribute = esp_matter::attribute::create (cluster, PowerSource::Attributes::BatPercentRemaining::Id, ATTRIBUTE_FLAG_NULLABLE, esp_matter_nullable_uint8 (value));
3803
3803
if (!attribute) {
3804
3804
ESP_LOGE (TAG, " Could not create attribute" );
3805
3805
return NULL ;
3806
3806
}
3807
- esp_matter::attribute::add_bounds (attribute, esp_matter_uint8 (min), esp_matter_uint8 (max));
3807
+ esp_matter::attribute::add_bounds (attribute, esp_matter_nullable_uint8 (min), esp_matter_nullable_uint8 (max));
3808
3808
return attribute;
3809
3809
}
3810
3810
3811
- attribute_t *create_bat_time_remaining (cluster_t *cluster, nullable<uint32_t > value, uint32_t min, uint32_t max)
3811
+ attribute_t *create_bat_time_remaining (cluster_t *cluster, nullable< uint32_t > value, nullable< uint32_t > min, nullable< uint32_t > max)
3812
3812
{
3813
3813
attribute_t *attribute = esp_matter::attribute::create (cluster, PowerSource::Attributes::BatTimeRemaining::Id, ATTRIBUTE_FLAG_NULLABLE, esp_matter_nullable_uint32 (value));
3814
3814
if (!attribute) {
3815
3815
ESP_LOGE (TAG, " Could not create attribute" );
3816
3816
return NULL ;
3817
3817
}
3818
- esp_matter::attribute::add_bounds (attribute, esp_matter_uint32 (min), esp_matter_uint32 (max));
3818
+ esp_matter::attribute::add_bounds (attribute, esp_matter_nullable_uint32 (min), esp_matter_nullable_uint32 (max));
3819
3819
return attribute;
3820
3820
}
3821
3821
@@ -3924,14 +3924,14 @@ attribute_t *create_bat_charge_state(cluster_t *cluster, uint8_t value)
3924
3924
return esp_matter::attribute::create (cluster, PowerSource::Attributes::BatChargeState::Id, ATTRIBUTE_FLAG_NONE, esp_matter_enum8 (value));
3925
3925
}
3926
3926
3927
- attribute_t *create_bat_time_to_full_charge (cluster_t *cluster, nullable<uint32_t > value, uint32_t min, uint32_t max)
3927
+ attribute_t *create_bat_time_to_full_charge (cluster_t *cluster, nullable<uint32_t > value, nullable< uint32_t > min, nullable< uint32_t > max)
3928
3928
{
3929
3929
attribute_t *attribute = esp_matter::attribute::create (cluster, PowerSource::Attributes::BatTimeToFullCharge::Id, ATTRIBUTE_FLAG_NULLABLE, esp_matter_nullable_uint32 (value));
3930
3930
if (!attribute) {
3931
3931
ESP_LOGE (TAG, " Could not create attribute" );
3932
3932
return NULL ;
3933
3933
}
3934
- esp_matter::attribute::add_bounds (attribute, esp_matter_uint32 (min), esp_matter_uint32 (max));
3934
+ esp_matter::attribute::add_bounds (attribute, esp_matter_nullable_uint32 (min), esp_matter_nullable_uint32 (max));
3935
3935
return attribute;
3936
3936
}
3937
3937
@@ -3940,14 +3940,14 @@ attribute_t *create_bat_functional_while_charging(cluster_t *cluster, bool value
3940
3940
return esp_matter::attribute::create (cluster, PowerSource::Attributes::BatFunctionalWhileCharging::Id, ATTRIBUTE_FLAG_NONE, esp_matter_bool (value));
3941
3941
}
3942
3942
3943
- attribute_t *create_bat_charging_current (cluster_t *cluster, nullable<uint32_t > value, uint32_t min, uint32_t max)
3943
+ attribute_t *create_bat_charging_current (cluster_t *cluster, nullable<uint32_t > value, nullable< uint32_t > min, nullable< uint32_t > max)
3944
3944
{
3945
3945
attribute_t *attribute = esp_matter::attribute::create (cluster, PowerSource::Attributes::BatChargingCurrent::Id, ATTRIBUTE_FLAG_NULLABLE, esp_matter_nullable_uint32 (value));
3946
3946
if (!attribute) {
3947
3947
ESP_LOGE (TAG, " Could not create attribute" );
3948
3948
return NULL ;
3949
3949
}
3950
- esp_matter::attribute::add_bounds (attribute, esp_matter_uint32 (min), esp_matter_uint32 (max));
3950
+ esp_matter::attribute::add_bounds (attribute, esp_matter_nullable_uint32 (min), esp_matter_nullable_uint32 (max));
3951
3951
return attribute;
3952
3952
}
3953
3953
0 commit comments