mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-25 09:35:42 +00:00
added le_central_set_scan_parameters
This commit is contained in:
parent
e2602ea29f
commit
ef11999f21
@ -2214,6 +2214,12 @@ le_command_status_t le_central_stop_scan(){
|
||||
return BLE_PERIPHERAL_OK;
|
||||
}
|
||||
|
||||
void le_central_set_scan_parameters(uint8_t scan_type, uint16_t scan_interval, uint16_t scan_window){
|
||||
hci_stack->le_scan_type = scan_type;
|
||||
hci_stack->le_scan_interval = scan_interval;
|
||||
hci_stack->le_scan_window = scan_window;
|
||||
hci_run();
|
||||
}
|
||||
|
||||
le_command_status_t le_central_connect(bd_addr_t * addr, bd_addr_type_t addr_type){
|
||||
hci_connection_t * conn = hci_connection_for_bd_addr_and_type(addr, addr_type);
|
||||
|
@ -424,6 +424,7 @@ le_command_status_t le_central_stop_scan();
|
||||
le_command_status_t le_central_connect(bd_addr_t * addr, bd_addr_type_t addr_type);
|
||||
le_command_status_t le_central_connect_cancel();
|
||||
le_command_status_t gap_disconnect(hci_con_handle_t handle);
|
||||
void le_central_set_scan_parameters(uint8_t scan_type, uint16_t scan_interval, uint16_t scan_window);
|
||||
|
||||
//*************** le client end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user