求助!!!wifi连接问题
Posted: Wed Nov 22, 2023 12:23 pm
我在使用官方例程进行wifi连接时,如果wifi密码名称写死,可以正常连接使用,如果我使用一个变量去代替它,就会报错,这是为什么呀
代码如下:
uint8_t ssid[] = "zanshuai";
uint8_t pwd[] = "364578542";
// Initialize and start WiFi
wifi_sta_config_t cfg_sta = {
.ssid = ssid,
.password = pwd,
};
代码如下:
uint8_t ssid[] = "zanshuai";
uint8_t pwd[] = "364578542";
// Initialize and start WiFi
wifi_sta_config_t cfg_sta = {
.ssid = ssid,
.password = pwd,
};