nrf-softdevice icon indicating copy to clipboard operation
nrf-softdevice copied to clipboard

advertisement exceeded buffer length

Open Gibbz opened this issue 4 months ago • 2 comments

Im trying to add fast pair support to my device. However when adding any data I get the exceeded buffer length panic. It works without the .services_16... line. But I add it I can no longer build. How can I increase the buffer?

static ADV_DATA: LegacyAdvertisementPayload = LegacyAdvertisementBuilder::new()
        .flags(&[Flag::GeneralDiscovery, Flag::LE_Only])
        .services_16(ServiceList::Complete, &[ServiceUuid16::from_u16(0xFE2C)]) // fast pair
        .services_128(ServiceList::Incomplete, &[[0x9E, 0xCA, 0xDC, 0x24, 0x0E, 0xE5, 0xA9, 0xE0, 0x93, 0xF3, 0xA3, 0xB5, 0x01, 0x00, 0x40, 0x6E]]) // UART Service
        .short_name("BScooter")
        .build();

Gibbz avatar Oct 25 '24 03:10 Gibbz