esp_xt_wdt_register_callback() function
Register a callback function that will be called when the watchdog times out. Only one callback function can be registered, any call to esp_xt_wdt_register_callback will override the previous callback function.
Arguments
func
The callback function to register
arg
Pointer to argument that will be passed to the callback function
Notes
This function will be called from an interrupt context where the cache might be disabled. Thus the function should be placed in IRAM and must not perform any blocking operations.