-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'docs/add_Chinese_translation_for_api-reference/system/e…
…sp_err_and_api-reference/bluetooth/esp_gatts' into 'master' docs: provide CN translation for api-reference/system/esp_err and api-reference/bluetooth/esp_gatts Closes DOC-5187 See merge request espressif/esp-idf!23676
- Loading branch information
Showing
4 changed files
with
57 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,29 @@ | ||
.. include:: ../../../en/api-reference/bluetooth/esp_gatts.rst | ||
GATT 服务器 API | ||
===================== | ||
|
||
:link_to_translation:`en:[English]` | ||
|
||
应用示例 | ||
------------------- | ||
|
||
以下示例及其教程存放在 ESP-IDF 示例的 :example:`bluetooth/bluedroid/ble` 目录下: | ||
|
||
* 以下为 GATT 服务器示例及其教程,该示例创建了一个带有属性表的 GATT 服务器,无需逐个添加属性。建议通过以下方式添加属性(官方推荐)。 | ||
|
||
- :example:`bluetooth/bluedroid/ble/gatt_server_service_table` | ||
- :example_file:`GATT 服务器服务表示例 <bluetooth/bluedroid/ble/gatt_server_service_table/tutorial/Gatt_Server_Service_Table_Example_Walkthrough.md>` | ||
|
||
* 以下为 GATT 服务器示例及其教程,该示例逐个添加 Bluedroid 定义的属性,创建 GATT 服务。建议通过以下方式添加属性。 | ||
|
||
- :example:`bluetooth/bluedroid/ble/gatt_server` | ||
- :example_file:`GATT 服务器示例 <bluetooth/bluedroid/ble/gatt_server/tutorial/Gatt_Server_Example_Walkthrough.md>` | ||
|
||
* 以下示例与 Bluetooth SPP 类似。在该示例中,GATT 服务器可以接收来自 UART 的数据,并将数据自动发送到对端设备。 | ||
|
||
- :example:`bluetooth/bluedroid/ble/ble_spp_server` | ||
|
||
API 参考 | ||
------------- | ||
|
||
.. include-build-file:: inc/esp_gatts_api.inc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,16 @@ | ||
.. include:: ../../../en/api-reference/system/esp_err.rst | ||
错误代码和辅助函数 | ||
================================ | ||
|
||
:link_to_translation:`en:[English]` | ||
|
||
本节列出了 ESP-IDF 中常见错误代码的定义,以及部分与错误处理相关的辅助函数。 | ||
|
||
有关 ESP-IDF 中错误代码的基本信息,请参阅 :doc:`错误处理 <../../api-guides/error-handling>`。 | ||
|
||
有关 ESP-IDF 定义的错误代码的完整列表,请参阅 :doc:`错误代码参考 <../error-codes>`。 | ||
|
||
API 参考 | ||
------------- | ||
|
||
.. include-build-file:: inc/esp_check.inc | ||
.. include-build-file:: inc/esp_err.inc |