Community Translation - Dynamically enable/disable GATT service or characteristic - KBA233960

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
keni_4440091
Level 7
Level 7
500 replies posted 100 solutions authored 50 solutions authored

Dear supporter

I want to translate the following KBA, Please confirm to my work.

Dynamically enable/disable GATT service or characteristic - KBA233960

Regards,

Nino

0 Likes
3 Replies
JennaJo
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hi, Nino-san

Confirm to work this KBA.

Thanks.

Regards,

Jenna Jo
0 Likes

Dear Jenna

The following shows the translated version in Japanese for targeted KBA.

Please conform and double check.

Regards,

Nino

------------------------------------------------------------------------------------------------

GATTサービスまたは特性を動的に有効化/無効化にする – KBA233960

 

Version: **

 

関連製品: AIROC™ Bluetooth® LE付き PSoC™ 6 MCU

 

以下に示すようにGATTサービスまたは特性を動的に有効化あるいは無効化にするCy_BLE_GATTS_EnableAttribute() およびCy_BLE_GATTS_DisableAttribute() API関数を使用できます:

 

属性の有効化

 

Bluetooth® LEスタックに登録されているGATTデータベースのサービスまたは特性論理グループの属性入力を有効化するために以下のコードスニペットを使用してください:

 

cy_stc_ble_gatts_db_attr_enable_info_t handle;
cy_en_ble_gatt_err_code_t gattError;

 

handle.attrHandle = CY_BLE_BLE_THROUGHPUT_SERVICE_HANDLE;
GattErrCode = Cy_BLE_GATTS_EnableAttribute(&handle);

 

属性の無効化

 

Bluetooth® LEスタックに登録されているGATTデータベースのサービスまたは特性論理グループの属性入力を無効化するために以下のコードスニペットを使用してください:

 

cy_stc_ble_gatts_db_attr_disable_info_t handle;
cy_en_ble_gatt_err_code_t gattError;

 

handle.attrHandle = CY_BLE_BLE_THROUGHPUT_SERVICE_HANDLE;
GattErrCode = Cy_BLE_GATTS_DisableAttribute(&handle);

 

BLEミドルウェアPDLドキュメンテーションにあるこのAPIを参照してください。PSoC™ Creatorでは、BLEコンポーネントを右クリックし、Open PDL Documentationを選択するか、またはC:/Program Files(x86)/Cypress/PDL/3.1.0/doc/ble_api_reference_manual/html/index.htmlに移動します。

 

Labels   MCU & PSoC: PSoC 6

Tags: ble GATT attribute Service and Characteristic. Add tags

 

JennaJo
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hi, Nino-san

Thank you for participation on KBA translation.

If there is any issue, I will get back to you.

Thanks. 

Jenna Jo
0 Likes