Running WiFi and mdns from the test framework

pptzpp
Posts: 6
Joined: Thu Aug 19, 2021 10:59 am

Running WiFi and mdns from the test framework

Postby pptzpp » Fri May 05, 2023 1:13 pm

I'd like to use the unit test framework for something more akin to integration testing, and I'm trying to get WiFi and mdns working. I'm able (unstably) to get WiFi connectivity using `esp_wifi_start()` and `esp_wifi_connect()`, but a subsequent `mdns_query_async_new()` fails. When I try to initialise the WiFi like in the `examples/wifi/getting_started/station/main/station_example_main.c` example I get an error on `esp_netif_create_default_wifi_sta()`.

Can the test framework be reliably used that way? If so, where could I hunt for the source of the errors?

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 173 guests