@@ -598,12 +598,15 @@ void gatts_profile_event_handler(esp_gatts_cb_event_t event, esp_gatt_if_t gatts
598598 char_name_from_handle (param -> write .handle ));
599599 if (!param -> write .is_prep ) {
600600 // the data length of gattc write must be less than MAX_VALUE_LENGTH.
601- ESP_LOGD (BT_GATTS_TAG , "GATT_WRITE_EVT handle= %d, value len= %d" , param -> write .handle , param -> write .len );
601+ ESP_LOGD (BT_GATTS_TAG , "GATT_WRITE_EVT handle %d, value len %d" , param -> write .handle , param -> write .len );
602602 if (esp_log_level_get (BT_GATTS_TAG ) >= ESP_LOG_VERBOSE ) {
603603 ESP_LOGV (BT_GATTS_TAG , "DATA FROM APP" );
604604 ESP_LOG_BUFFER_HEX (BT_GATTS_TAG , param -> write .value , param -> write .len );
605605 }
606606
607+ ESP_LOGD (BT_GATTS_TAG , "idx %d tabl %d" , IDX_CHAR_SFIDA_COMMANDS_CFG , certificate_handle_table [IDX_CHAR_SFIDA_COMMANDS_CFG ]);
608+ ESP_LOGD (BT_GATTS_TAG , "idx %d tabl %d" , IDX_CHAR_CENTRAL_TO_SFIDA_VAL , certificate_handle_table [IDX_CHAR_SFIDA_COMMANDS_CFG ]);
609+
607610 if (certificate_handle_table [IDX_CHAR_SFIDA_COMMANDS_CFG ] == param -> write .handle ) {
608611 uint16_t descr_value = param -> write .value [1 ] << 8 | param -> write .value [0 ];
609612 handle_pgp_handshake_first (gatts_if , descr_value , param -> write .conn_id );
@@ -767,6 +770,8 @@ void gatts_profile_event_handler(esp_gatts_cb_event_t event, esp_gatt_if_t gatts
767770 }
768771 break ;
769772 }
773+ case ESP_GATTS_SET_ATTR_VAL_EVT :
774+ break ;
770775 default :
771776 ESP_LOGW (BT_GATTS_TAG , "%s: unhandled event %d" , __func__ , event );
772777 break ;
0 commit comments