Q: 哪些接口需要在 user_init 中调用,否则容易出现问题,或者不生效?
wifi_set_ip_info、wifi_set_macaddr 仅在 user_init 中调用生效,其他地方调用不生效。
system_timer_reinit 建议在 user_init 中调用,否则调用后,需要重新 arm 所有 timer。
wifi_station_set_config 如果在 user_init 中调用,底层会自动连接对应路由,不需要再调用 wifi_station_connect 来进行连接。否则,需要调用 wifi_station_connect 进行连接。
wifi_station_set_auto_connect 设置上电启动时是否自动连接已记录的路由;例如,关闭自动连接功能,如果在 user_init 中调用,则当前这次上电就不会自动连接路由,如果在其他位置调用,则是下次上电启动不会自动连接路由。
Q: 哪些接口需要在 user_init 中调用,否则容易出现问题,或者不生效?
Who is online
Users browsing this forum: No registered users and 125 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.