You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//optional wird ausgeführt wenn ein gatt resource (characteristic, descriptor, sevice) hinzugefügt wird. Also nicht benötigt
77
+
//optional callback. Called when a GATT resource (characteristic, descriptor, sevice) is added.
66
78
ble_hs_cfg.gatts_register_cb=gattSvrRegisterCb;
67
79
68
-
/*Security Manager local input output capabilities*/
69
-
//io types zum aufbau einer sicheren verbindung
70
-
//BLE_SM_IO_CAP_DISP_ONLY = Display only
71
-
//BLE_SM_IO_CAP_DISP_YES_NO = Display & yes & no buttons
72
-
//BLE_SM_IO_CAP_KEYBOARD_ONLY = Keyboard only
73
-
//BLE_SM_IO_CAP_NO_IO = just work
74
-
//BLE_SM_IO_CAP_KEYBOARD_DISP = Keyboard and display
75
-
//BLE_SM_IO_CAP_KEYBOARD_ONLY && BLE_SM_IO_CAP_KEYBOARD_DISP not implemented
80
+
/*Security Manager local input output capabilities
81
+
*io types to establish a secure connection
82
+
*BLE_SM_IO_CAP_DISP_ONLY = Display only
83
+
*BLE_SM_IO_CAP_DISP_YES_NO = Display & yes & no buttons
84
+
*BLE_SM_IO_CAP_KEYBOARD_ONLY = Keyboard only
85
+
*BLE_SM_IO_CAP_NO_IO = just work
86
+
*BLE_SM_IO_CAP_KEYBOARD_DISP = Keyboard and display
87
+
*BLE_SM_IO_CAP_KEYBOARD_ONLY && BLE_SM_IO_CAP_KEYBOARD_DISP not implemented
88
+
*/
76
89
ble_hs_cfg.sm_io_cap=BLE_SM_IO_CAP_DISP_YES_NO;
90
+
77
91
/*Security Manager secure connections flag
78
-
if set proper flag in pairing request/response will be set. this results in using LE Secure Connections for pairing if also supported by remote device. Fallback to legacy pairing if not supported by remote.*/
92
+
*if set proper flag in pairing request/response will be set. this results in using LE Secure Connections for pairing if also supported by remote device. Fallback to legacy pairing if not supported by remote.
93
+
*/
79
94
ble_hs_cfg.sm_sc=1;
80
-
/*security Manager bond flag
81
-
if set proper flag in Pairing request/response will be set. This results in storing keys distributed during bonding.*/
95
+
96
+
/*Security Manager bond flag
97
+
*if set proper flag in Pairing request/response will be set. This results in storing keys distributed during bonding.
98
+
*/
82
99
ble_hs_cfg.sm_bonding=1;
83
-
/*security manager mitm flag
84
-
if set proper flag in pairing request/response will be set. This results in requiring man-in-the-middle protection when pairing.*/
100
+
101
+
/*Security manager MITM flag
102
+
*if set proper flag in pairing request/response will be set. This results in requiring man-in-the-middle protection when pairing.
103
+
*/
85
104
ble_hs_cfg.sm_mitm=1;
86
-
/*Security Manager Local Key Distribution Mask*/
105
+
106
+
/*Security Manager Local Key Distribution Mask
107
+
*Refer components/nimble/nimble/nimble/host/include/host/ble_sm.h for
0 commit comments