I got to thinking about the OS function called wifi_station_scan(). What this does is scan the WiFi environment and returns a set of networks that one can join. While thinking about this, it dawned on me that what this function is doing is scanning looking for access points. If my thinking is sound, then the name of the function should be:
wifi_access_point_scan()
because a "station" is a device that connects to an access point, while an access point is a device that will allow stations to connect. Unless I am missing something (which is also likely) then the name of the function as it stands is reversed from what I think it should be.
Badly named function - wifi_station_scan
Re: Badly named function - wifi_station_scan
Postby blubb » Mon Jul 27, 2015 10:23 pm
Look at ESP8266 as a device that has two subsystems: An AP part and a client (station) part. If you want to connect to a router you will do it with the second part. So it makes sense that the scan function is part of the wifi client and not part of the access point subsystem. At least to me it is more logical the way it is now.
Who is online
Users browsing this forum: No registered users and 77 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.