static int cmd_status_cb(int argc, const char *argv[], void *out_p, void *in_p, void *arg_p, void *call_arg_p) { esp_wifi_print(out_p); return (0); }
int main() { sys_start(); /* Configure and start the the WiFi module as a Station and SoftAP. */ esp_wifi_set_op_mode(esp_wifi_op_mode_station_softap_t); if (esp_wifi_softap_init("Simba", NULL) != 0) { std_printf(FSTR("Failed to configure the Soft AP.\r\n")); } if (esp_wifi_station_init("Qvist2", "maxierik", NULL) != 0) { std_printf(FSTR("Failed to configure the Station.\r\n")); } while (1) { esp_wifi_print(sys_get_stdout()); thrd_sleep(2); } return (0); }