cancel
Showing results for 
Search instead for 
Did you mean: 

Beaconing advertisement

ABN
Associate III

Hi all,

I'm referring to the BLE_Beacon example project. I figured out that we need to start the advertisement and then attach the required payload/service_data. Is there any minimum set of advertisement packets to be broadcasted in-order to see the payload??

aci_gap_set_discoverable -> aci_gap_delete_ad_type -> aci_gap_update_adv_data
The above-mentioned steps happen during a single advertisement event?

 

/* Put the device in a non-connectable mode. */
  ret = aci_gap_set_discoverable(ADV_NONCONN_IND,                          /*< Advertise as non-connectable, undirected. */
                                 AdvertisingInterval, AdvertisingInterval, /*< Set the advertising interval as 700 ms (0.625 us increment). */
                                 GAP_PUBLIC_ADDR, NO_WHITE_LIST_USE,           /*< Use the public address, with no white list. */
                                 0, NULL,                                  /*< Do not use a local name. */
                                 0, NULL,                                  /*< Do not include the service UUID list. */
                                 0, 0);                                    /*< Do not set a slave connection interval. */

  if (ret != BLE_STATUS_SUCCESS)
  {
    return ret;
  }

  /* Remove the TX power level advertisement (this is done to decrease the packet size). */
  ret = aci_gap_delete_ad_type(AD_TYPE_TX_POWER_LEVEL);

  if (ret != BLE_STATUS_SUCCESS)
  {
    return ret;
  }

  /* Update the service data. */
  ret = aci_gap_update_adv_data(sizeof(service_data), service_data);

  if (ret != BLE_STATUS_SUCCESS)
  {
    return ret;
  }

 

0 REPLIES 0