| 
    Zephyr Project API
    3.4.0
    
   A Scalable Open Source RTOS 
   | 
 
L2CAP Server structure. More...
#include <l2cap.h>
Data Fields | |
| uint16_t | psm | 
| Server PSM.  More... | |
| bt_security_t | sec_level | 
| int(* | accept )(struct bt_conn *conn, struct bt_l2cap_chan **chan) | 
| Server accept callback.  More... | |
| sys_snode_t | node | 
L2CAP Server structure.
| int(* bt_l2cap_server::accept) (struct bt_conn *conn, struct bt_l2cap_chan **chan) | 
Server accept callback.
This callback is called whenever a new incoming connection requires authorization.
| conn | The connection that is requesting authorization | 
| chan | Pointer to received the allocated channel | 
| sys_snode_t bt_l2cap_server::node | 
| uint16_t bt_l2cap_server::psm | 
Server PSM.
Possible values: 0 A dynamic value will be auto-allocated when bt_l2cap_server_register() is called.
0x0001-0x007f Standard, Bluetooth SIG-assigned fixed values.
0x0080-0x00ff Dynamically allocated. May be pre-set by the application before server registration (not recommended however), or auto-allocated by the stack if the app gave 0 as the value.
| bt_security_t bt_l2cap_server::sec_level | 
Required minimum security level