feat: added get/set attemps

This commit is contained in:
2025-05-06 09:31:46 +03:00
parent 17deb9f895
commit da9da77890
3 changed files with 31 additions and 1 deletions

View File

@ -128,6 +128,22 @@ extern "C"
*/
bool zh_espnow_is_initialized(void);
/**
* @brief Get number of attempts.
*
* @return Attemps number.
*/
uint8_t zh_espnow_get_attempts(void);
/**
* @brief Set number of attempts.
*
* @param[in] attempts Attemps number.
*
* @return ESP_OK if success or an error code otherwise.
*/
esp_err_t zh_espnow_set_attempts(uint8_t attempts);
#ifdef __cplusplus
}
#endif