mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-24 13:43:38 +00:00
example/le_streamer_client: init sm before gatt client
This commit is contained in:
parent
9be4aecf32
commit
bdd0a871d0
@ -443,11 +443,12 @@ int btstack_main(int argc, const char * argv[]){
|
||||
|
||||
l2cap_init();
|
||||
|
||||
gatt_client_init();
|
||||
|
||||
sm_init();
|
||||
sm_set_io_capabilities(IO_CAPABILITY_NO_INPUT_NO_OUTPUT);
|
||||
|
||||
// sm_init needed before gatt_client_init
|
||||
gatt_client_init();
|
||||
|
||||
// use different connection parameters: conn interval min/max (* 1.25 ms), slave latency, supervision timeout, CE len min/max (* 0.6125 ms)
|
||||
// gap_set_connection_parameters(0x06, 0x06, 4, 1000, 0x01, 0x06 * 2);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user