change control point characteristics

Hi,

My project is to read the value of ADC and advertise live data over BLE.I have referred this Tutorial:1. Introduction — DA145XX Tutorial SDK peripherals (renesas.com) and I was able to successful to read ADC value in a time interval using app_easy_timer.But I got stuck when it came to the advertise live data by changing the value of control point characteristic. When I refer to other tickets all the answers end in change the value of control point characteristics. But I got confused how/where to change the value of control point in user_custs1_impl.c

Thanks

Femilda Philiph

Parents Reply
  • Hi ,

    I have given value to control point by:

    // Parameters of the @ref CUSTS1_VAL_WRITE_IND message
    struct custs1_val_write_ind
    {
    /// Connection index
    uint8_t conidx;
    /// Handle of the attribute that has to be written
    uint16_t handle;
    /// Data length to be written
    uint16_t length;
    /// Data to be written in attribute database
    uint8_t value[0x01];
    };

    Now after establishing connection, the change i noticed is the name of ble changed to DLG ADC_UPDATE from DLG_PRPH.But  Im unable to read the adc values from gpadc or sent adc value to mobile application. 

Children