This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Set profile value to show "no feature supported"

我使用 nRF52810 

我建立了一個配置文件並使用“nRF connect”來檢查我的配置文件

如何顯示“不 支持功能”就像下圖的 0x2a49。

謝謝

Parents
  • Hi, 

    It needs some changes in ble_bps.c for that. See the modification:

    // Add feature characteristic
    initial_feature_len = uint16_encode(p_bps_init->feature, init_value_encoded);
    
    memset(&add_char_params, 0, sizeof(add_char_params));
    
    add_char_params.uuid = BLE_UUID_BLOOD_PRESSURE_FEATURE_CHAR;
    add_char_params.max_len = initial_feature_len;
    add_char_params.init_len = initial_feature_len;
    init_value_encoded[0] = 0; // Not supported
    add_char_params.p_init_value = init_value_encoded;
    add_char_params.char_props.read = 1;
    add_char_params.read_access = p_bps_init->bp_feature_rd_sec;

    Regards,
    Amanda

Reply Children
No Data
Related