cancel
Showing results for 
Search instead for 
Did you mean: 

BLE Scan response example

Lmali.1
Associate III

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

1 REPLY 1
Remi QUINTIN
ST Employee

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.