@@ -27,25 +27,26 @@ esp_err_t matter_light_attribute_update(
27
27
static esp_err_t app_attribute_update_cb (
28
28
attribute::callback_type_t type, uint16_t endpoint_id, uint32_t cluster_id, uint32_t attribute_id, esp_matter_attr_val_t *val, void *priv_data
29
29
) {
30
+ log_d (" Attribute update callback: type: %u, endpoint: %u, cluster: %u, attribute: %u, val: %u" , type, endpoint_id, cluster_id, attribute_id, val->val .u32 );
30
31
esp_err_t err = ESP_OK;
31
32
MatterEndPoint *ep = (MatterEndPoint *)priv_data; // endpoint pointer to base class
32
33
switch (type) {
33
34
case PRE_UPDATE: // Callback before updating the value in the database
34
- log_i (" Attribute update callback: PRE_UPDATE" );
35
+ log_v (" Attribute update callback: PRE_UPDATE" );
35
36
if (ep != NULL ) {
36
37
err = ep->attributeChangeCB (endpoint_id, cluster_id, attribute_id, val) ? ESP_OK : ESP_FAIL;
37
38
}
38
39
break ;
39
40
case POST_UPDATE: // Callback after updating the value in the database
40
- log_i (" Attribute update callback: POST_UPDATE" );
41
+ log_v (" Attribute update callback: POST_UPDATE" );
41
42
break ;
42
43
case READ: // Callback for reading the attribute value. This is used when the `ATTRIBUTE_FLAG_OVERRIDE` is set.
43
- log_i (" Attribute update callback: READ" );
44
+ log_v (" Attribute update callback: READ" );
44
45
break ;
45
46
case WRITE: // Callback for writing the attribute value. This is used when the `ATTRIBUTE_FLAG_OVERRIDE` is set.
46
- log_i (" Attribute update callback: WRITE" );
47
+ log_v (" Attribute update callback: WRITE" );
47
48
break ;
48
- default : log_i (" Attribute update callback: Unknown type %d" , type);
49
+ default : log_v (" Attribute update callback: Unknown type %d" , type);
49
50
}
50
51
return err;
51
52
}
@@ -114,7 +115,7 @@ void ArduinoMatter::_init() {
114
115
115
116
void ArduinoMatter::begin () {
116
117
if (!_matter_has_started) {
117
- log_w (" No Matter endpoint has been created. Please create an endpoint first." );
118
+ log_e (" No Matter endpoint has been created. Please create an endpoint first." );
118
119
return ;
119
120
}
120
121
0 commit comments