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

128bit characteristic uuid.

How to add single 128-bit characteristic uuid. It's not based on service uuid.I have tryed the link text ,It's work,but it's something wrong .

I am working on ios ble midi. I'm add service UUID and characteristic UUID follow the Apple Ble Midi develop document like this image description

If I only add service UUID,I can found my devide by IOS app with support BLE midi. I am continue add characteristic UUID. I cannot found my devide from IOS app.It's my issue.

I am add service UUID from the demo module.I think it's no problem. I am add characterisc UUID like the follow steps. first.I'm also use the functionsd_ble_uuid_vs_add(&nus_base_uuid, &p_nus->uuid_type); add the characteric base uuid. then. Packge all characteristic need data(gatt char, gatt attr,16bit uuid etc..) Call the function sd_ble_gatts_characteristic_add(p_nus->service_handle, &char_md, &attr_char_value,
&p_nus->midi_io_handles);
Ok,It's done.

Now, I just doubt that I use the same variable "p_nus", It's type of ble_nus_t that contain important variable,like as uuid type ,service_handle,midi_io_handles,connect_handle,data_handle etc.

If only add service uuid, the nrf Master show the "Services Complete List UUID 128:" like this: image description

It's show the service UUID.

if add characteristic uuid ,the nrf Master show the "Services Complete List UUID 128:" like this: image description

It's show the characteristic UUID.

Is it correct?

thanks.

Parents Reply
  • There's not nearly enough information in your question for anyone to help you. You say you want to add a single 128 bit characteristic UUID but 'it works but there is something wrong'. What works, what''s wrong, what are you seeing, are you getting errors adding it, is it not showing up, is the device not advertising, are you not seeing it on a sniffer, can you not connect to it .. what's the actual code you've used to add the characteristic and what's the actual problem you are having?

    Provide proper information and perhaps someone can suggest something.

Children
No Data
Related