Badly named function - wifi_station_scan

User avatar
kolban
Posts: 131
Joined: Tue Jun 16, 2015 1:09 pm
Location: Fort Worth, Texas, USA

Badly named function - wifi_station_scan

Postby kolban » Sun Jul 26, 2015 3:37 am

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.

blubb
Posts: 116
Joined: Mon Jun 22, 2015 5:35 am

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