不得不说的是,这节课确实没啥内容,好吧,也实习一下,首先下载课件
《第二课 WIFI连接技术、小e开发平台.pdf》在群里
然后找到第23页的代码
#define AP_SSID "home"
#define AP_PSSWD "MikuQ.com"
void user_init(void)
{
struct station_config config;
wifi_set_opmode(STATION_MODE);
sprintf(config.ssid, AP_SSID);
sprintf(config.password, AP_PSSWD);
wifi_station_set_config(&config);
wifi_station_connect();
}
拷入et_iot_source\et_app\user\user_main.c
继续,例子二在第24页
#define E_AP_SSID "xiao-e"
#define E_AP_PSSWD "123456789"
user_init(void)
{
struct softap_config config;
wifi_set_opmode(SOFTAP_MODE);
sprintf(config.ssid, E_AP_SSID);
sprintf(config.password, E_AP_PSSWD);
config.authmode = AUTH_WPA_WPA2_PSK;
config.ssid_len = 0;
config.max_connection = 4;
wifi_softap_set_config(&config);
}
我要赚赏金打赏帖 |
|
|---|---|
| 基于MCP23S17的输入输出功能模块控制被打赏¥20元 | |
| 【S32K3XX】SPD 软件包使用Link文件修改被打赏¥22元 | |
| Switch-Case局部变量定义问题被打赏¥23元 | |
| 基于米尔TIAM62L开发板的串口通信及应用被打赏¥20元 | |
| PCF8574功能模块及其使用被打赏¥20元 | |
| 传感器LSM6DSO及LIS3MDL的功能检测被打赏¥18元 | |
| LPS25HB气压传感器及其检测被打赏¥18元 | |
| HTS221温湿度传感器及其检测被打赏¥18元 | |
| 【S32K3XX】HSE FW 版本更新被打赏¥21元 | |
| 基于ArduinoUNO开发板的AT24C02读写测试被打赏¥16元 | |