How to understand "attr_id = param->handle - custs1_env.shdl;" param->handle and custs1_env.shdl in this statement.
How is param->handle and custs1_env.shdl generated?
Device:
How to understand "attr_id = param->handle - custs1_env.shdl;" param->handle and custs1_env.shdl in this statement.
How is param->handle and custs1_env.shdl generated?
Hi,
Can you describe a little more on the environment, which part of code in which project of SDK? Thanks.
DA1458x_SDK\5.0.4\projects\target_apps\ble_examples\ble_app_profile\Keil_5 \ custs1_task
静态int gattc_write_cmd_ind_handler(ke_msg_id_t const msgid,
struct gattc_write_cmd_ind const *param,
ke_task_id_t const dest_id,
ke_task_id_t const src_id)
Hi There,
This is the implemetation of Custom 1 Service. The custs1_env.shdl is the Custom 1 Service Start Handle and the param->handle is the Handle of the attribute that has to be written.
Thanks, PM_Dialog