esp_timer_get_period() function
Get the period of a timer This function fetches the timeout period of a timer. For a one-shot timer, the timeout period will be 0.
Arguments
timer
timer handle created using esp_timer_create()
period
memory to store the timer period value in microseconds
Return value
- ESP_OK on success - ESP_ERR_INVALID_ARG if the arguments are invalid