求助!!!wifi连接问题

Moderator: ESP_ZT

364578542@qq.com
Posts: 1
Joined: Wed Nov 22, 2023 12:17 pm

求助!!!wifi连接问题

Postby 364578542@qq.com » 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,
};

mushan
Posts: 3
Joined: Mon Dec 25, 2023 6:50 am

Re: 求助!!!wifi连接问题

Postby mushan » Thu Dec 28, 2023 7:46 am

有没有一种可能,你别用数组变量来存,用指针来

Who is online

Users browsing this forum: No registered users and 3 guests