Closed taks closed 4 months ago
The ble_gap_adv_set_data function returns BLE_ERR_INV_HCI_CMD_PARMS if the argument is invalid. https://github.com/apache/mynewt-nimble/blob/a04a6d2ce642bb0f7f49bf60c8b37988152548c0/nimble/host/src/ble_gap.c#L2772-L2776
ble_gap_adv_set_data
BLE_ERR_INV_HCI_CMD_PARMS
However, other functions (e.g., ble_gap_adv_rsp_set_data) return BLE_HS_EINVAL. https://github.com/apache/mynewt-nimble/blob/a04a6d2ce642bb0f7f49bf60c8b37988152548c0/nimble/host/src/ble_gap.c#L2800-L2804
ble_gap_adv_rsp_set_data
BLE_HS_EINVAL
Is there any reason why the ble_gap_adv_set_data function returns BLE_ERR_INV_HCI_CMD_PARMS instead of BLE_HS_EINVAL?
no, it should return BLE_HS_INVAL. could you please create a PR to fix this issue?
BLE_HS_INVAL
Thank you for your confirmation. I have created a PR.
The
ble_gap_adv_set_data
function returnsBLE_ERR_INV_HCI_CMD_PARMS
if the argument is invalid. https://github.com/apache/mynewt-nimble/blob/a04a6d2ce642bb0f7f49bf60c8b37988152548c0/nimble/host/src/ble_gap.c#L2772-L2776However, other functions (e.g.,
ble_gap_adv_rsp_set_data
) returnBLE_HS_EINVAL
. https://github.com/apache/mynewt-nimble/blob/a04a6d2ce642bb0f7f49bf60c8b37988152548c0/nimble/host/src/ble_gap.c#L2800-L2804Is there any reason why the
ble_gap_adv_set_data
function returnsBLE_ERR_INV_HCI_CMD_PARMS
instead ofBLE_HS_EINVAL
?