- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear supporter
I want to translate the following KBA, Please confirm to my work.
Dynamically enable/disable GATT service or characteristic - KBA233960
Regards,
Nino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Nino-san
Confirm to work this KBA.
Thanks.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Nino-san
Thank you for participation on KBA translation.
If there is any issue, I will get back to you.
Thanks.