Detect timeout on Thread network

Hello

Currently I use the example "ble_thread_dyn_mtd_coap_cli_pca10056" and I would like that my application can detect timeout of the messages sent on the Thread network.

Could you explain to me how I should detect timeouts on the Thread network?
And how can I define the duration of these timeouts?

Thank you

Related