Hello. I just started learn ble module and some confusing about ble_app_uart:
-
in file ble_nus.c we have function
on_write
this function calling when trigerred BLE_GATTS_EVT_WRITE and analyze what kind of handle we got. If there's tx handle we do something misunderstanding for mep_nus->data_handler(p_nus, p_evt_write->data, p_evt_write->len);
We calling it's like function and it's confused to me. Is it like some type of template?
-
In any case in that example I understand where and how I can use value from ble:
static void nus_data_handler(ble_nus_t * p_nus, uint8_t * p_data, uint16_t length)
I can't find similar to that function in ble_app_template example. Where I can handle gotten value there?