Custom service
Adding a characteristic step by step
Dialog Semiconductor © 2019
19
TODO 6 – Information
/* @file user_custs_config.h Note: SDK6 uses user_custs1_def.h */
/* step 5 and step 6 info:: 128 bit Service UUID this is displayed from Right to Left in the client scanner device */
#define DEF_CUST1_SVC_UUID_128 {0x2F, 0x2A, 0x93, 0xA6, 0xBD, 0xD8, 0x41, 0x52, 0xAC, 0x0B, 0x10, 0x99, 0x2E, 0xC6,
0xFE, 0xED} /* Displayed as EDFEC62E99100BAC5241D8BDA6932A2F */
TODO 7 – Add your control point
/* @file user_custs_config.h Note: SDK6 uses user_custs1_def.h */
#define DEF_CUST1_LONG_VALUE_UUID_128 {0x8C, 0x09, 0xE0, 0xD1, 0x81, 0x54, 0x42, 0x40, 0x8E, 0x4F, 0xD2, 0xB3,
0x77, 0xE3, 0x2A, 0x77}
/* copy and paste in code step 7 define your control point */
#define DEF_USER_LED_STATE_UUID_128 {0x33, 0x32, 0x31, 0x30, 0x29, 0x28, 0x27, 0x26, 0x25, 0x24, 0x23, 0x22, 0x21, 0x20,
0x19, 0x18}
• NOTE 1: A service can have one or more characteristics, and each service distinguishes itself from other services by
means of a unique numeric ID called a UUID, which can be either 16-bit (for officially adopted BLE Services) or 128-
bit (for custom services).
• NOTE 2: This tutorial provides an example of a 128bit UUID number. Before releasing a product to the market the user
will need to define a different 128bit number than used in the example to avoid conflicts. The user can select any
number and this does not need to be registered at the Bluetooth SIG .