Page 1 of 1

Running WiFi and mdns from the test framework

Posted: Fri May 05, 2023 1:13 pm
by pptzpp
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?