|
1 | 1 | /* |
2 | | - * SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD |
| 2 | + * SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD |
3 | 3 | * |
4 | 4 | * SPDX-License-Identifier: Apache-2.0 |
5 | 5 | */ |
@@ -98,7 +98,11 @@ typedef enum{ |
98 | 98 | typedef enum { |
99 | 99 | IP_EVENT_STA_GOT_IP, /*!< station got IP from connected AP */ |
100 | 100 | IP_EVENT_STA_LOST_IP, /*!< station lost IP and the IP is reset to 0 */ |
101 | | - IP_EVENT_AP_STAIPASSIGNED, /*!< soft-AP assign an IP to a connected station */ |
| 101 | + IP_EVENT_ASSIGNED_IP_TO_CLIENT, /*!< DHCP server assigned an IP to a connected client */ |
| 102 | + IP_EVENT_AP_STAIPASSIGNED __attribute__((deprecated("Use IP_EVENT_ASSIGNED_IP_TO_CLIENT instead"))) |
| 103 | + = IP_EVENT_ASSIGNED_IP_TO_CLIENT, /*!< compatibility enum, |
| 104 | + soft-AP assign an IP to a connected station |
| 105 | + @deprecated Use IP_EVENT_ASSIGNED_IP_TO_CLIENT instead */ |
102 | 106 | IP_EVENT_GOT_IP6, /*!< station or ap or ethernet interface v6IP addr is preferred */ |
103 | 107 | IP_EVENT_ETH_GOT_IP, /*!< ethernet got IP from connected AP */ |
104 | 108 | IP_EVENT_ETH_LOST_IP, /*!< ethernet lost IP and the IP is reset to 0 */ |
@@ -148,12 +152,17 @@ typedef struct { |
148 | 152 | bool preferred; /*!< The default preference of the address */ |
149 | 153 | } ip_event_add_ip6_t; |
150 | 154 |
|
151 | | -/** Event structure for IP_EVENT_AP_STAIPASSIGNED event */ |
| 155 | +/** Event structure for IP_EVENT_ASSIGNED_IP_TO_CLIENT event */ |
152 | 156 | typedef struct { |
153 | 157 | esp_netif_t *esp_netif; /*!< Pointer to the associated netif handle */ |
154 | 158 | esp_ip4_addr_t ip; /*!< IP address which was assigned to the station */ |
155 | 159 | uint8_t mac[6]; /*!< MAC address of the connected client */ |
156 | | -} ip_event_ap_staipassigned_t; |
| 160 | +} ip_event_assigned_ip_to_client_t; |
| 161 | + |
| 162 | +/** Compatibility event structure for ip_event_ap_staipassigned_t event |
| 163 | + * @deprecated Use ip_event_assigned_ip_to_client_t instead */ |
| 164 | +__attribute__((deprecated("Use ip_event_assigned_ip_to_client_t instead of ip_event_ap_staipassigned_t"))) |
| 165 | +typedef ip_event_assigned_ip_to_client_t ip_event_ap_staipassigned_t; |
157 | 166 |
|
158 | 167 | typedef enum { |
159 | 168 | ESP_NETIF_TX = 0, // Data is being transmitted. |
|
0 commit comments