Skip to main content
Lmali.1
Associate III
March 15, 2020
Question

BLE Scan response example

  • March 15, 2020
  • 1 reply
  • 1187 views

I'm trying to advertise with Scan Response, as I need to advertise more data than 31 bytes (Advertisement limitation).

as I understand the way to publish more data before connecting/pairing, is by using Scan Response.

there is an example with the STM32WB55 Evaluation Board?

Thanks,

Lior

This topic has been closed for replies.

1 reply

Remi QUINTIN
Technical Moderator
April 29, 2020

Unfortunately we do not have such example.

You can use hci_le_set_scan_response_data (sizeof(service_data), service_data);

with

uint8_t service_data[] =

 {

   26,                                                                     /*< Length. */

   AD_TYPE_MANUFACTURER_SPECIFIC_DATA,                                     /*< Manufacturer Specific Data data type value. */

   0x4C, 0x00, 0x02, 0x15,                                                 /*< 32-bit Manufacturer Data. */

   0x01,                                                  

   0x01,

   0x01,

   0x01,

   0x01,

   0x01,

   0x01,

   0x01,                                                  

   0x01,

   0x01,

   0x01,

   0x01,

   0x01,

   0x01,

   0x01,                                                  

   0x01,

   0x01,

   0x01,

   0x01,

   0x01,

   0x01,                                        

  };

before sending the aci_gap_set_discoverable function.