feat: added get mac address

This commit is contained in:
2025-05-06 11:32:11 +03:00
parent 1391c9b3c1
commit 0f35e48fe5
4 changed files with 20 additions and 3 deletions

View File

@ -171,13 +171,22 @@ extern "C"
* @brief Set battery mode.
*
* @param[in] battery_mode True to enable the mode false to disable it.
*
*
* @note If true the node does not receive messages.
*
* @return ESP_OK if success or an error code otherwise.
*/
esp_err_t zh_espnow_set_battery_mode(bool battery_mode);
/**
* @brief Get MAC address of the node.
*
* @param[out] mac_addr Pointer to a buffer containing an eight-byte MAC.
*
* @return ESP_OK if success or an error code otherwise.
*/
esp_err_t zh_espnow_get_mac(uint8_t *mac_addr);
#ifdef __cplusplus
}
#endif