1 Commits

Author SHA1 Message Date
17deb9f895 feat: added get initialization status 2025-05-06 09:07:52 +03:00
3 changed files with 13 additions and 1 deletions

View File

@ -121,6 +121,13 @@ extern "C"
*/
void zh_espnow_reset_stats(void);
/**
* @brief Check ESP-NOW initialization status.
*
* @return true if ESP-NOW is initialized false otherwise.
*/
bool zh_espnow_is_initialized(void);
#ifdef __cplusplus
}
#endif

View File

@ -1 +1 @@
1.2.0
1.3.0

View File

@ -516,4 +516,9 @@ void zh_espnow_reset_stats(void)
_stats.sent_fail = 0;
_stats.received = 0;
ZH_ESPNOW_LOGI("ESP-NOW statistic reset successfully.");
}
bool zh_espnow_is_initialized(void)
{
return _is_initialized;
}