Multiple interrupts on CyBle_GappSetNumOfAdvPkts

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

cross mob
D_Sd_3235936
Level 4
Level 4
25 sign-ins 50 questions asked 25 replies posted

My sleep battle with CPU and BLE continues.

Now i am trying to send 3 packets on wake up while advertising is closed.

So, i do this once on begin:

CyBle_GappStopAdvertisement()

and i see that BLE state turns to Disconnected Idle.

When i use CyBle_GappSetNumOfAdvPkts(, 3 packets)

i get two constant interrupts of :CYBLE_EVT number is 26 ( CYBLE_EVT_GAPP_ADVERTISEMENT_START_STOP)

why two?

one is for the packets transfered, where does the second one come from?

I added prints to Stop/Start advertisment function just to be sure, non of them evokes.

0 Likes
1 Solution
SayaniS_66
Moderator
Moderator
Moderator
10 likes received First like received

Hello,

You will get two interrupts. The first one is when the advertisement starts and packets are sent and the second one is when the advertisement stops.

-Sayani.

View solution in original post

0 Likes
1 Reply
SayaniS_66
Moderator
Moderator
Moderator
10 likes received First like received

Hello,

You will get two interrupts. The first one is when the advertisement starts and packets are sent and the second one is when the advertisement stops.

-Sayani.

0 Likes