You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when starting legacy advertising and setting BT_LE_ADV_OPT_USE_NAME option, the device name is set inside the scan response if one is provided when calling bt_le_adv_start else inside the advertising packet.
So there is not user-friendly way to send the same in the advertising packet if BT_LE_ADV_OPT_USE_NAME and scan response are used.
It would be nice to have an additional flag to select where to put the name
A workaround to achieve the desired result is to no use BT_LE_ADV_OPT_USE_NAME and set explicitly the device name in the advertising packet
The text was updated successfully, but these errors were encountered:
@jhedberg Currently bt_set_name would clear the rest of the Scan Response data.
Should we perhaps change that and instead document that the application will have to toggle advertising (in order to provide the scan response data pointer again) when setting the name this way and using the USE_NAME option?
Should we add the option to select the advertising name in the advertising packet instead? I remember you had some opinions on this.
If we don't want to do this we should close this issue.
@joerchan I don't have a strong opinion either way wrt bt_set_name(), however that seems orthogonal to this particular issue. My gut feeling is that putting the name in the advertising data rather than the scan response is such a minority use case that we can require apps to just do the manual work in that case. I'm open to be convinced to change my mind, however 😄
Currently when starting legacy advertising and setting
BT_LE_ADV_OPT_USE_NAME
option, the device name is set inside the scan response if one is provided when callingbt_le_adv_start
else inside the advertising packet.So there is not user-friendly way to send the same in the advertising packet if
BT_LE_ADV_OPT_USE_NAME
and scan response are used.It would be nice to have an additional flag to select where to put the name
A workaround to achieve the desired result is to no use
BT_LE_ADV_OPT_USE_NAME
and set explicitly the device name in the advertising packetThe text was updated successfully, but these errors were encountered: