gap.h (78315a58573f370dd679856042aa32fba14bc84a) | gap.h (5d23aae8c99ae76ea4cbc60923752604dceb7324) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 195 unchanged lines hidden (view full) --- 204/** 205 * @brief Register filter for rejecting classic connections. Callback will return 1 accept connection, 0 on reject. 206 */ 207void gap_register_classic_connection_filter(int (*accept_callback)(bd_addr_t addr)); 208 209/* Configure Secure Simple Pairing */ 210 211/** | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 195 unchanged lines hidden (view full) --- 204/** 205 * @brief Register filter for rejecting classic connections. Callback will return 1 accept connection, 0 on reject. 206 */ 207void gap_register_classic_connection_filter(int (*accept_callback)(bd_addr_t addr)); 208 209/* Configure Secure Simple Pairing */ 210 211/** |
212 * @brief Enable will enable SSP during init. | 212 * @brief Enable will enable SSP during init. Default: true |
213 */ 214void gap_ssp_set_enable(int enable); 215 216/** 217 * @brief Set IO Capability. BTstack will return capability to SSP requests 218 */ 219void gap_ssp_set_io_capability(int ssp_io_capability); 220 221/** 222 * @brief Set Authentication Requirements using during SSP 223 */ 224void gap_ssp_set_authentication_requirement(int authentication_requirement); 225 226/** | 213 */ 214void gap_ssp_set_enable(int enable); 215 216/** 217 * @brief Set IO Capability. BTstack will return capability to SSP requests 218 */ 219void gap_ssp_set_io_capability(int ssp_io_capability); 220 221/** 222 * @brief Set Authentication Requirements using during SSP 223 */ 224void gap_ssp_set_authentication_requirement(int authentication_requirement); 225 226/** |
227 * @brief Enable/disable Secure Connections. Default: true if supported by Controller 228 */ 229void gap_secure_connections_enable(bool enable); 230 231/** |
|
227 * @brief If set, BTstack will confirm a numeric comparison and enter '000000' if requested. 228 */ 229void gap_ssp_set_auto_accept(int auto_accept); 230 231/** 232 * @brief Set required encryption key size for GAP Levels 1-3 on ccassic connections. Default: 16 bytes 233 * @param encryption_key_size in bytes. Valid 7..16 234 */ --- 441 unchanged lines hidden --- | 232 * @brief If set, BTstack will confirm a numeric comparison and enter '000000' if requested. 233 */ 234void gap_ssp_set_auto_accept(int auto_accept); 235 236/** 237 * @brief Set required encryption key size for GAP Levels 1-3 on ccassic connections. Default: 16 bytes 238 * @param encryption_key_size in bytes. Valid 7..16 239 */ --- 441 unchanged lines hidden --- |