File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1746,6 +1746,17 @@ static inline const char *bt_security_err_to_str(enum bt_security_err err)
1746
1746
*/
1747
1747
void bt_set_bondable (bool enable );
1748
1748
1749
+ /** @brief Get bonding flag.
1750
+ *
1751
+ * Get current bonding flag.
1752
+ * The initial value of this flag depends on @kconfig{CONFIG_BT_BONDABLE} Kconfig
1753
+ * setting.
1754
+ * The Bonding flag can be updated using bt_set_bondable().
1755
+ *
1756
+ * @return Current bonding flag.
1757
+ */
1758
+ bool bt_get_bondable (void );
1759
+
1749
1760
/** @brief Set/clear the bonding flag for a given connection.
1750
1761
*
1751
1762
* Set/clear the Bonding flag in the Authentication Requirements of
Original file line number Diff line number Diff line change @@ -2659,6 +2659,11 @@ void bt_set_bondable(bool enable)
2659
2659
bondable = enable ;
2660
2660
}
2661
2661
2662
+ bool bt_get_bondable (void )
2663
+ {
2664
+ return bondable ;
2665
+ }
2666
+
2662
2667
void bt_le_oob_set_sc_flag (bool enable )
2663
2668
{
2664
2669
sc_oobd_present = enable ;
You can’t perform that action at this time.
0 commit comments