Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bt_rfcomm_server Struct Reference

#include <rfcomm.h>

Data Fields

uint8_t channel
 Server Channel.
 
int(* accept )(struct bt_conn *conn, struct bt_rfcomm_server *server, struct bt_rfcomm_dlc **dlc)
 Server accept callback.
 

Field Documentation

◆ accept

int(* bt_rfcomm_server::accept) (struct bt_conn *conn, struct bt_rfcomm_server *server, struct bt_rfcomm_dlc **dlc)

Server accept callback.

This callback is called whenever a new incoming connection requires authorization.

Parameters
connThe connection that is requesting authorization
serverPointer to the server structure this callback relates to
dlcPointer to received the allocated dlc
Returns
0 in case of success or negative value in case of error.

◆ channel

uint8_t bt_rfcomm_server::channel

Server Channel.

Possible values: 0 A dynamic value will be auto-allocated when bt_rfcomm_server_register() is called.

0x01 - 0x1e Dynamically allocated. May be pre-set by the application before server registration (not recommended however), or auto-allocated by the stack if the 0 is passed.


The documentation for this struct was generated from the following file: