Skip to content

Commit 9c8d6e6

Browse files
committed
add some initial configurations
1 parent ca3eec2 commit 9c8d6e6

File tree

1 file changed

+4
-0
lines changed
  • mrbgems/picoruby-ble/ports/rp2040

1 file changed

+4
-0
lines changed

mrbgems/picoruby-ble/ports/rp2040/ble.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ BLE_init(const uint8_t *profile_data, int ble_role)
137137
l2cap_init();
138138
sm_init();
139139

140+
sm_set_io_capabilities(IO_CAPABILITY_NO_INPUT_NO_OUTPUT);
141+
sm_set_authentication_requirements(SM_AUTHREQ_BONDING);
142+
sm_set_secure_connections_only_mode(false); // If true, LEGACY pairing will fail
143+
140144
role = ble_role;
141145

142146
switch (role) {

0 commit comments

Comments
 (0)