1 Reply Latest reply on Jul 24, 2018 9:46 PM by PY_21

    Advertisement by command.


      Currently my advertisement has :


      cyBle_discoveryModeInfo.advParam->advIntvMin = CYBLE_SLOW_ADV_INT_MIN;

      cyBle_discoveryModeInfo.advParam->advIntvMax = CYBLE_SLOW_ADV_INT_MAX;


      Can i advertise one packet by command wherever i want in code and close advertisement until i want to send the next one ?

      Without having the thresholds active?

        • 1. Re: Advertisement by command.



          We can advertise with selected no. of packets using the API " CyBle_GappSetNumOfAdvPkts (CYBLE_GAPP_DISC_MODE_INFO_T *advInfo, uint16 NumOfAdvPkts) " this function sets number of advertisement packets to be sent over the air and starts Advertisement. Gap Peripheral receives CYBLE_EVT_GAPP_ADVERTISEMENT_START_STOP event after specified no. of adv packets are transmitted successfully.


          To start and stop the advertisement wherever you want below APIs can be used in code:

          CyBle_GappStartAdvertisement (uint8 advertisingIntervalType) - This function is used to start the advertisement.

          Similarly, CyBle_GappStopAdvertisement (void ) - This function can be used to exit from discovery mode. After the execution of this function, there will no longer be any advertisements.


          Please refer the component datasheet for more information on these APIs.