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

ble_app_rscs

I have nRF52832 running ble_app_rscs as a server, sending notification to the client every hour. I know that the client can read the values also by sending bt_gatt_read to the server and the server will reply instantly with the values. However this value corresponds to the latest measurements conducted by the server, and it could be a while ago. Is there away of sending a message from the client to server so that the server can actually do the measurements instantly? In other words can the client initiate the server to sample its sensors and update gatt instead of waiting for its timer?

Please assist. 

Parents Reply
  • I have used the 

    add_char_params.is_defered_read   = 1;
    characteristic_add()

    and now I do get BLE_GATT_EVT_RW_AUTHORIZE_REQUEST, however the read_function at the client receives no data, and err of 14. 

    am I missing some steps? how come when I add_char_params.is_defered_read is not set I can read the value with no error but when add_char_params.is_defered_read   = 1; I get error and hence no data at the client.

    please assist. 

Children
Related