添加特征值
c
uint16_t char_handle;
const uint8_t char_uuid[16] = { /* Your 128-bit UUID */ };
ret = aci_gatt_add_char(service_handle, UUID_TYPE_128, char_uuid, 20, CHAR_PROP_READ | CHAR_PROP_WRITE, ATTR_PERMISSION_NONE, GATT_DONT_NOTIFY_EVENTS, 16, 1, &char_handle);
if (ret != BLE_STATUS_SUCCESS) {
// Handle error
}
|