Allow user to set custom DHCP name

This commit is contained in:
Sergey Lyubka committed 2025-03-22 16:30:02 +00:00
1 parent 042ea53478
commit 064fc6ff7b
4 files changed
+54 -36

No files matched your search

+5
View File
@@ -2751,6 +2751,10 @@ bool mg_ota_flash_end(struct mg_flash *flash);
#endif
struct mg_wifi_scan_bss_data {
struct mg_str SSID;
char *BSSID;
@@ -2823,6 +2827,7 @@ struct mg_tcpip_if {
mg_tcpip_event_handler_t fn; // User-specified event handler function
struct mg_mgr *mgr; // Mongoose event manager
struct mg_queue recv_queue; // Receive queue
char dhcp_name[12]; // Name reported to DHCP, "mip" if unset
uint16_t mtu; // Interface MTU
#define MG_TCPIP_MTU_DEFAULT 1500