cancel
Showing results for 
Search instead for 
Did you mean: 

Advertising table problem

AMACH.1
Associate II

Hello,

I am working on a BLE project and I have a prolem of advertising table.

- when I try to fill the advertisement table and I want to add more information, I don't see all the advertisements on the application, and I see the arbitrary information, so the question is if there is a size limit for this table?

 uint8_t manuf_data[29] = {

 2,0x01,0x06,

3,0x02,0xE0,0xFF,

  2,0x0A,0x00, /* 0 dBm */ // Transmission Power

  4,0x09,SENSOR_DEMO_NAME, // Complete Name

//7,0x16,0x00,0xB0,0x00,0x00,0x00,0x00,

  13,0xFF,0x01, /* SKD version */

  0x80,

  0x00,

0x00,

0x00,

0x00,

  bdaddr[5], /* BLE MAC start -MSB first- */

  bdaddr[4],

  bdaddr[3],

  bdaddr[2],

  bdaddr[1],

bdaddr[0]

 };

and when I try to put a very big name (#define SENSOR_DEMO_NAME  'b','l','u','e','n','r','g'......), the program doesn't reach the next line :

 /* Update device name */

 ret = aci_gatt_update_char_value(service_handle, dev_name_char_handle, 0, sizeof(device_name),device_name);

 if(ret != BLE_STATUS_SUCCESS)

 while(1);

So is there a size limite for this name?

THANK YOU in advance.

Do you have any suggestions?

0 REPLIES 0