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

UUID 16 bit 128bit

Hi, in evothing and mbed all the UUID are 128bits long however, in EK, the code use 16bit UUID ex. nus.c the uuid is 0x0001 0x0002 0x0003

any one knows how to provide UUID to writecharacteristic in ble.js

Parents
  • Hi jjww,

    It's also 128 bit UUID on the code for EK. It's just that we have added the UUID base to the database using sd_ble_uuid_vs_add() function. After that we use the value in &p_nus->uuid_type which is the index of the base in the database, in combination with the 16 bit UUID (0x0001, 0x0002 etc) instead of having to use the 128bit UUID everywhere.

Reply
  • Hi jjww,

    It's also 128 bit UUID on the code for EK. It's just that we have added the UUID base to the database using sd_ble_uuid_vs_add() function. After that we use the value in &p_nus->uuid_type which is the index of the base in the database, in combination with the 16 bit UUID (0x0001, 0x0002 etc) instead of having to use the 128bit UUID everywhere.

Children
Related