Im trying to create an application that connects to my wifi, but I did not get really far. Look at my small application (main.c):
#include <stdio.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/net/net_if.h>
#include <zephyr/net/wifi_mgmt.h>
#include <zephyr/net/net_event.h>
int main(void)
{
printk("Application start\n");
struct net_if *iface = net_if_get_default();
return 0;
}
The error I get:
main.c: undefined reference to `net_if_get_default'
I dont really understand it because i include it with net_if.h file, and my esp32s2_saola.overlay content:
&wifi {
status = "okay";
};
So it should be all ok?