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
//The callback to associate with this advertising procedure. If advertising ends, the event is reported through this callback. If advertising results in a connection, the connection inherits this callback as its event-reporting mechanism.
/*Security Manager local input output capabilities*/
422
434
//io types zum aufbau einer sicheren verbindung
423
435
//BLE_SM_IO_CAP_DISP_ONLY = Display only
424
436
//BLE_SM_IO_CAP_DISP_YES_NO = Display & yes & no buttons
425
437
//BLE_SM_IO_CAP_KEYBOARD_ONLY = Keyboard only
426
438
//BLE_SM_IO_CAP_NO_IO = just work
427
439
//BLE_SM_IO_CAP_KEYBOARD_DISP = Keyboard and display
428
440
ble_hs_cfg.sm_io_cap=BLE_SM_IO_CAP_NO_IO;
429
-
//perform secure connection pairing, false we will use legacy pairing.
441
+
/*Security Manager secure connections flag
442
+
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.*/
430
443
ble_hs_cfg.sm_sc=1;
444
+
/*security Manager bond flag
445
+
if set proper flag in Pairing request/response will be set. This results in storing keys distributed during bonding.*/
431
446
ble_hs_cfg.sm_bonding=1;
432
-
//man in the middle protection
447
+
/*security manager mitm flag
448
+
if set proper flag in pairing request/response will be set. This results in requiring man-in-the-middle protection when pairing.*/
0 commit comments