mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-11 05:57:05 +03:00
Start of 5.X work
This commit is contained in:
@@ -1,12 +1,36 @@
|
||||
/*
|
||||
*
|
||||
* Sebastien L. 2023, sle118@hotmail.com
|
||||
* Philippe G. 2023, philippe_44@outlook.com
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*
|
||||
* License Overview:
|
||||
* ----------------
|
||||
* The MIT License is a permissive open source license. As a user of this software, you are free to:
|
||||
* - Use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of this software.
|
||||
* - Use the software for private, commercial, or any other purposes.
|
||||
*
|
||||
* Conditions:
|
||||
* - You must include the above copyright notice and this permission notice in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* The MIT License offers a high degree of freedom and is well-suited for both open source and
|
||||
* commercial applications. It places minimal restrictions on how the software can be used,
|
||||
* modified, and redistributed. For more details on the MIT License, please refer to the link above.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "network_manager.h"
|
||||
#include "Configurator.h"
|
||||
#include "Config.h"
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
#endif
|
||||
esp_netif_t * network_wifi_start();
|
||||
void destroy_network_wifi();
|
||||
esp_err_t network_wifi_set_connected(bool connected);
|
||||
|
||||
/**
|
||||
* @brief Registers handler for wifi and ip events
|
||||
@@ -32,8 +56,10 @@ esp_err_t network_wifi_disconnected(queue_message *msg);
|
||||
esp_err_t network_wifi_start_ap(queue_message *msg);
|
||||
esp_err_t network_wifi_handle_event(void* arg, esp_event_base_t event_base, int32_t event_id, void* event_data);
|
||||
bool is_wifi_up();
|
||||
wifi_config_t* network_wifi_set_wifi_sta_config(const char * ssid, const char * password) ;
|
||||
void network_wifi_get_status();
|
||||
esp_err_t network_wifi_add_ssid(const char* ssid, const char* password);
|
||||
void network_wifi_clear_config();
|
||||
void network_wifi_get_status();
|
||||
esp_netif_t *network_wifi_get_interface();
|
||||
esp_netif_t *network_wifi_get_ap_interface();
|
||||
bool network_wifi_is_ap_sta_mode();
|
||||
@@ -43,16 +69,13 @@ bool network_wifi_sta_config_changed();
|
||||
void network_wifi_global_init();
|
||||
bool network_wifi_is_known_ap(const char * ssid);
|
||||
esp_err_t network_wifi_connect(const char * ssid, const char * password);
|
||||
esp_err_t network_wifi_erase_legacy();
|
||||
esp_err_t network_wifi_connect_ssid(const char * ssid);
|
||||
esp_err_t network_wifi_connect_active_ssid();
|
||||
esp_err_t network_wifi_erase_known_ap();
|
||||
esp_err_t network_wifi_remove_ssid(const char * ssid);
|
||||
esp_err_t network_wifi_set_sta_mode();
|
||||
size_t network_wifi_get_known_count();
|
||||
size_t network_wifi_get_known_count_in_range();
|
||||
esp_err_t network_wifi_connect_next_in_range();
|
||||
void network_wifi_esp_sta_to_sta(wifi_ap_record_t* scan_res, sys_WifiSTAEntry* sta_entry);
|
||||
sys_WifiAuthTypeEnum network_wifi_get_auth_type(const wifi_auth_mode_t mode) ;
|
||||
void network_wifi_activate_strongest_ssid();
|
||||
sys_net_auth_types network_wifi_get_auth_type(const wifi_auth_mode_t mode) ;
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user