החל מ-27 במרץ 2025, מומלץ להשתמש ב-android-latest-release
במקום ב-aosp-main
כדי ליצור תרומות ל-AOSP. מידע נוסף זמין במאמר שינויים ב-AOSP.
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הפניה ל-Struct של btgatt_srvc_id_t
#include <
bt_gatt_types.h
>
מזהה השירות של GATT מזהה גם את סוג השירות (ראשי/משני)
ההגדרה מופיעה בשורה
40
בקובץ
bt_gatt_types.h
.
התיעוד של המבנה הזה נוצר מהקובץ הבא:
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-27 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-07-27 (שעון UTC)."],[],[],null,["# Android Hardware Abstraction Layer: btgatt_srvc_id_t Struct Reference\n\nbtgatt_srvc_id_t Struct Reference\n=================================\n\n[Data Fields](#pub-attribs) \nbtgatt_srvc_id_t Struct Reference \n\n`\n#include \u003c\n`[bt_gatt_types.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt_types.h)`\n\u003e\n`\n\n|--------------------------------------------------------------|------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| [btgatt_gatt_id_t](/reference/hal/structbtgatt__gatt__id__t) | [id](/reference/hal/structbtgatt__srvc__id__t#a36044ea64f7346fb63dddd7b0eedc937) |\n| ||\n| uint8_t | [is_primary](/reference/hal/structbtgatt__srvc__id__t#a8ccfa6560ed2261d52642fafbcf3b9a8) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nGATT Service ID also identifies the service type (primary/secondary)\n\n\nDefinition at line\n[40](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt_types.h)\nof file\n[bt_gatt_types.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt_types.h)\n.\n\nField Documentation\n-------------------\n\n\n|-----------------------------------------------------------------|\n| [btgatt_gatt_id_t](/reference/hal/structbtgatt__gatt__id__t) id |\n\n\nDefinition at line\n[42](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt_types.h)\nof file\n[bt_gatt_types.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt_types.h)\n.\n\n|--------------------|\n| uint8_t is_primary |\n\n\nDefinition at line\n[43](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt_types.h)\nof file\n[bt_gatt_types.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt_types.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [bt_gatt_types.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_gatt_types.h)"]]