esp32: Re-enable mDNS after move to IDF v5.0.2.
mDNS was disabled in e4650125b88a35f074097f16d84a8f49bd22ac06. This commit re-enables it. For reference see: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/migration-guides/release-5.x/5.0/removed-components.html Signed-off-by: Carlos Gil <carlosgilglez@gmail.com>
This commit is contained in:
parent
7bced2eaec
commit
1f35576a69
5
ports/esp32/main_esp32/idf_component.yml
Normal file
5
ports/esp32/main_esp32/idf_component.yml
Normal file
@ -0,0 +1,5 @@
|
||||
## IDF Component Manager Manifest File
|
||||
dependencies:
|
||||
espressif/mdns: "~1.1.0"
|
||||
idf:
|
||||
version: ">=5.0.2"
|
5
ports/esp32/main_esp32c3/idf_component.yml
Normal file
5
ports/esp32/main_esp32c3/idf_component.yml
Normal file
@ -0,0 +1,5 @@
|
||||
## IDF Component Manager Manifest File
|
||||
dependencies:
|
||||
espressif/mdns: "~1.1.0"
|
||||
idf:
|
||||
version: ">=5.0.2"
|
@ -1,5 +1,6 @@
|
||||
## IDF Component Manager Manifest File
|
||||
dependencies:
|
||||
espressif/mdns: "~1.1.0"
|
||||
espressif/esp_tinyusb: "~1.0.0"
|
||||
idf:
|
||||
version: ">=5.0.2"
|
||||
espressif/esp_tinyusb: "~1.0.0"
|
||||
|
@ -1,5 +1,6 @@
|
||||
## IDF Component Manager Manifest File
|
||||
dependencies:
|
||||
espressif/mdns: "~1.1.0"
|
||||
espressif/esp_tinyusb: "~1.0.0"
|
||||
idf:
|
||||
version: ">=5.0.2"
|
||||
espressif/esp_tinyusb: "~1.0.0"
|
||||
|
@ -58,6 +58,10 @@
|
||||
#define MDNS_QUERY_TIMEOUT_MS (5000)
|
||||
#define MDNS_LOCAL_SUFFIX ".local"
|
||||
|
||||
#ifndef NO_QSTR
|
||||
#include "mdns.h"
|
||||
#endif
|
||||
|
||||
enum {
|
||||
SOCKET_STATE_NEW,
|
||||
SOCKET_STATE_CONNECTED,
|
||||
|
@ -221,11 +221,11 @@ typedef long mp_off_t;
|
||||
#endif
|
||||
|
||||
#ifndef MICROPY_HW_ENABLE_MDNS_QUERIES
|
||||
#define MICROPY_HW_ENABLE_MDNS_QUERIES (0)
|
||||
#define MICROPY_HW_ENABLE_MDNS_QUERIES (1)
|
||||
#endif
|
||||
|
||||
#ifndef MICROPY_HW_ENABLE_MDNS_RESPONDER
|
||||
#define MICROPY_HW_ENABLE_MDNS_RESPONDER (0)
|
||||
#define MICROPY_HW_ENABLE_MDNS_RESPONDER (1)
|
||||
#endif
|
||||
|
||||
#ifndef MICROPY_BOARD_STARTUP
|
||||
|
@ -42,6 +42,10 @@
|
||||
#include "esp_wifi.h"
|
||||
#include "esp_log.h"
|
||||
|
||||
#ifndef NO_QSTR
|
||||
#include "mdns.h"
|
||||
#endif
|
||||
|
||||
#if MICROPY_PY_NETWORK_WLAN
|
||||
|
||||
#if (WIFI_MODE_STA & WIFI_MODE_AP != WIFI_MODE_NULL || WIFI_MODE_STA | WIFI_MODE_AP != WIFI_MODE_APSTA)
|
||||
|
Loading…
x
Reference in New Issue
Block a user