@@ -110,6 +110,10 @@ static struct bt_iso_big *big;
110
110
static uint32_t iso_send_count ;
111
111
static uint8_t iso_data [CONFIG_BT_ISO_TX_MTU ] = {0 };
112
112
113
+ static const struct bt_data ad [] = {
114
+ BT_DATA (BT_DATA_NAME_COMPLETE , CONFIG_BT_DEVICE_NAME , sizeof (CONFIG_BT_DEVICE_NAME ) - 1 ),
115
+ };
116
+
113
117
static void broadcaster_t (void * arg1 , void * arg2 , void * arg3 )
114
118
{
115
119
static uint8_t initial_send = 2 ;
@@ -227,12 +231,19 @@ int iso_broadcast_src_start(const struct shell *shell, size_t argc, char **argv)
227
231
}
228
232
229
233
/* Create a non-connectable non-scannable advertising set */
230
- ret = bt_le_ext_adv_create (BT_LE_EXT_ADV_NCONN_NAME , NULL , & adv );
234
+ ret = bt_le_ext_adv_create (BT_LE_EXT_ADV_NCONN , NULL , & adv );
231
235
if (ret ) {
232
236
LOG_ERR ("Failed to create advertising set (ret %d)" , ret );
233
237
return ret ;
234
238
}
235
239
240
+ /* Set advertising data to have complete local name set */
241
+ ret = bt_le_ext_adv_set_data (adv , ad , ARRAY_SIZE (ad ), NULL , 0 );
242
+ if (ret ) {
243
+ LOG_ERR ("Failed to set advertising data (ret %d)" , ret );
244
+ return 0 ;
245
+ }
246
+
236
247
/* Set periodic advertising parameters */
237
248
ret = bt_le_per_adv_set_param (adv , BROADCAST_PERIODIC_ADV );
238
249
if (ret ) {
0 commit comments