我看到AiPi-Cam里的代码应该是
- wifi_mgmr_ap_params_t config = { 0 };
- config.channel = 3;
- config.key = USER_AP_PASSWORD;
- config.ssid = USER_AP_NAME;
- config.use_dhcpd = 1;
- if (wifi_mgmr_conf_max_sta(2) != 0) {
- return 5;
- }
- if (wifi_mgmr_ap_start(&config) == 0) {
- return 0;
- }
复制代码 但是编译烧录后启动log报错
- get sta mac: b4:0e:cf:2b:02:87
- get ap mac: b4:0e:cf:2b:02:87
- [0m[I][MAIN] [APP] [EVT] wifi_event_handler, CODE_WIFI_ON_INIT_DONE
- wifi_mgmr_set_country_code[0m[I][MAIN] [APP] [EVT] wifi_eCODE_WIFI_ON_MGMR_DONE
- Conf Max Sta to 2
- 歔WPA] Failed to initialize driver interface
- exception_entry
- mcause=38000005
- mepc:a
复制代码
没想象中那么简单好用,从入门到放弃
|