1 Reply Latest reply on Sep 5, 2018 10:27 PM by sxsi

    Multiple interrupts on CyBle_GappSetNumOfAdvPkts

    dimasidi

      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.