This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

sd_ble_uuid_encode() return NRF_ERROR_INVALID_PARAM

I aslo read other question about sd_ble_uuid_encode.
But my problem is different from it.

I use nrf52832 and DK board.

I made my application from ble-app-template.

I succeed setting following custom UUID service.

#define LOCAL_SERVICE_UUID              0xFFE5

...

static const ble_uuid128_t m_base_uuid128 =
{
    {
        0xfa, 0x34, 0x9B, 0x5F, 0x80, 0x00, 0x00, 0x80,
        0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
    }
};

...

static ble_uuid_t m_adv_uuids[] = {{LOCAL_SERVICE_UUID, BLE_UUID_TYPE_VENDOR_BEGIN}};

But when I changed 0xfa, first position of ble_uuid128_t m_base_uuid128, to 0xfb then NRF_ERROR_INVALID_PARAM error occured. I want to set following UUID service.

static const ble_uuid128_t m_base_uuid128 =
{
    {
        0xfb, 0x34, 0x9B, 0x5F, 0x80, 0x00, 0x00, 0x80,
        0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
    }
};

I have a BLE device that has the UUID service.

I don't know that the problem was from H/W or S/W.

Related