This commit is contained in:
@@ -99,6 +99,23 @@ int wifi_manager_get_saved_profiles(wifi_profile_t *out_profiles, int max_count)
|
||||
*/
|
||||
esp_err_t wifi_manager_connect_new(const char *ssid, const char *password, bool save_to_nvs);
|
||||
|
||||
/**
|
||||
* @brief Acquire exclusive network lock for heavy TLS / HTTPS operations.
|
||||
* Prevents simultaneous TLS handshakes (OTA vs Scryfall) from exhausting SRAM.
|
||||
*/
|
||||
esp_err_t wifi_manager_acquire_net_lock(TickType_t timeout_ticks);
|
||||
|
||||
/**
|
||||
* @brief Release exclusive network lock.
|
||||
*/
|
||||
void wifi_manager_release_net_lock(void);
|
||||
|
||||
/**
|
||||
* @brief Set Wi-Fi modem power saving mode.
|
||||
* @param enable True for WIFI_PS_MIN_MODEM (saves ~30-40 mA), False for WIFI_PS_NONE.
|
||||
*/
|
||||
esp_err_t wifi_manager_set_power_save(bool enable);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user