We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 912f762 commit dd327e5Copy full SHA for dd327e5
1 file changed
wled00/network.h
@@ -7,7 +7,11 @@
7
// Declare internal Arduino library function to work around the fact that WiFi.setHostname() does not propagate the
8
// hostname to the network interface if it's been previously used. The underlying ESP-IDF layer supports this just
9
// fine; it's an oversight in the Arduino layer that we can work around by calling the internal function directly.
10
+#if (ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 4, 0)) && (ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(4, 5, 0))
11
esp_err_t set_esp_interface_hostname(esp_interface_t interface, const char * hostname);
12
+#else
13
+#define set_esp_interface_hostname(a,b)
14
+#endif
15
#endif
16
17
#ifndef WLED_DISABLE_ESPNOW
0 commit comments