Skip to main content
NCras
Visitor II
October 1, 2018
Question

Sensortile Dev Ket -> Cannot set 128 bit primary service uuid in adv packet

  • October 1, 2018
  • 0 replies
  • 484 views

Hi guys,

Trying to debug this issue. When I try to set a 128 bit service uuid in my advertising packet, I get 0x42 (invalid param) back from the BLE stack. Here's my call:

aci_gap_set_discoverable(ADV_IND, 0, 0, STATIC_RANDOM_ADDR, NO_WHITE_LIST_USE, 8, localName, 17, servUuid, 0, 0);

servUuid is an array where the first byte is AD_TYPE_128_BIT_SERV_UUID. This should be a valid advertisement packet. The uuid I am providing is a valid UUID that has already been added to the db. If I set servUuid to NULL and the length to 0, the call works as expected.

Any idea?

-Nick

    This topic has been closed for replies.