esp_timer_get_expiry_time() function
Get the expiry time of a one-shot timer This function fetches the expiry time of a one-shot timer.
Arguments
timer
timer handle created using esp_timer_create()
expiry
memory to store the timeout value in microseconds
Return value
- ESP_OK on success - ESP_ERR_INVALID_ARG if the arguments are invalid - ESP_ERR_NOT_SUPPORTED if the timer type is periodic
Notes
Passing the timer handle of a periodic timer will result in an error.