1 Reply Latest reply on Jun 19, 2016 12:31 PM by Madhu Lakshmipathy

    Changing GAPP Discovery mode on startup

    matevz.bosnak

      I want to be able to change between CYBLE_GAPP_SCAN_ANY_CONN_ANY and CYBLE_GAPP_SCAN_ANY_CONN_WHITELIST
      modes based on some external input. Before starting the advertisement, I tried writing to cyBle_discoveryModeInfo.advParam->advType on startup, but the value is simply not used (the original value is still being used).

         

      Is there an API that I am missing? Am I doing something wrong?

        • 1. Re: Changing GAPP Discovery mode on startup
          Madhu Lakshmipathy

          Are you using the CyBle_GappEnterDiscoveryMode ()API or the CyBle_GappStartAdvertisement(). You either need to use the GappEnterDiscoveryMode API if you are changing the advType parameter.,

             

          Or you need to go to the source code of the GappStartAdvertisement API (right click the API and select "go to definition") and change the advType parameter there.

             

          Regards,

             

          - Madhu Sudhan