How can app receive notification of ConnParamUpdateReq?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
RoHe_4370821
Level 4
Level 4
25 replies posted 25 sign-ins 10 replies posted

Hi,

Please may I ask how my Central application may be notified whenever a slave sends a ConnParamUpdateReq ?


Is there any callback I can use for my application to work with, or is there any way of overriding the underlying handler: lel2cap_sendConnParamUpdateReq or blecenhandleConnParamUpdateReq ?

Regards,
Rab

0 Likes
1 Solution
RoHe_4370821
Level 4
Level 4
25 replies posted 25 sign-ins 10 replies posted

I think I've answered this myself. I did the following:

lel2cap_handleConnParamUpdateReq = my_handleConnParamUpdateReq;

int rh_hack_handleConnParamUpdateReq(LEL2CAP_HDR *l2capHdr)

{

     blecenhandleConnParamUpdateReq(l2capHdr);

     // Do my own stuff here...

}

View solution in original post

0 Likes
1 Reply
RoHe_4370821
Level 4
Level 4
25 replies posted 25 sign-ins 10 replies posted

I think I've answered this myself. I did the following:

lel2cap_handleConnParamUpdateReq = my_handleConnParamUpdateReq;

int rh_hack_handleConnParamUpdateReq(LEL2CAP_HDR *l2capHdr)

{

     blecenhandleConnParamUpdateReq(l2capHdr);

     // Do my own stuff here...

}

0 Likes