Zephyr Project API 4.2.99
A Scalable Open Source RTOS
|
GOEP Server structure GOEP v1.1. More...
#include <goep.h>
Data Fields | |
struct bt_rfcomm_server | rfcomm |
RFCOMM server for GOEP v1.1. | |
int(* | accept )(struct bt_conn *conn, struct bt_goep_transport_rfcomm_server *server, struct bt_goep **goep) |
Server accept callback. | |
sys_snode_t | node |
GOEP Server structure GOEP v1.1.
int(* bt_goep_transport_rfcomm_server::accept) (struct bt_conn *conn, struct bt_goep_transport_rfcomm_server *server, struct bt_goep **goep) |
Server accept callback.
This callback is called whenever a new incoming GOEP connection requires authorization.
conn | The connection that is requesting authorization. |
server | Pointer to the server structure this callback relates to. |
goep | Pointer to received the allocated GOEP object. |
sys_snode_t bt_goep_transport_rfcomm_server::node |
struct bt_rfcomm_server bt_goep_transport_rfcomm_server::rfcomm |
RFCOMM server for GOEP v1.1.
The bt_goep_transport_rfcomm_server::rfcomm is used to register a rfcomm server.
The bt_rfcomm_server::channel needs to be passed with a pre-set channel (not recommended however), Or give a value 0
to make the channel be auto-allocated when bt_goep_transport_rfcomm_server_register is called. The bt_rfcomm_server::accept should be not used by GOEP application, and instead the bt_goep_transport_rfcomm_server::accept should be used.