apache / apache/mynewt-nimble

Function handling the connect request from the Central?

Open
#1,235 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
893
Forks
512
Avg merge
13d 31m
Merged PRs (30d)
7

Description

Hi,
not really an issue, more of a question. I was searching for the function that gets called when a CONNECT_REQ from the central has been received and the connection procedure is initiated in the _bleperph_ example project, but I can't seem to find it. Of course there is the bleprph_gap_event function with the BLE_GAP_EVENT_CONNECT event it responds to, but it seems that it is called **after** the connection is already established, not when the Central sends a CONNECT_REQ.
I am interested to see the code that gets executed after a Central initiates a connection, can someone point me to it?
Thanks in advance.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the _bleprph_ example and its bleprph_gap_event handler, then trace BLE_GAP_EVENT_CONNECT and the connection path for an incoming CONNECT_REQ. Done means identifying the relevant entry point and documenting when it runs relative to the established-connection event.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.