8000 WiFi Mesh Update 2.1 by aerlon · Pull Request #5157 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

WiFi Mesh Update 2.1 #5157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Sep 24, 2018
Prev Previous commit
Next Next commit
Change the minimum valid argument value of the setMaxAPStations metho…
…d to 0, since this value is also supported by the ESP8266.
  • Loading branch information
aerlon committed Sep 22, 2018
commit eb4a613d0787b9a8d0a7380a6b0693f61d301bdb
2 changes: 1 addition & 1 deletion libraries/ESP8266WiFiMesh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ General Information

* This library uses the standard Arduino core for ESP8266 WiFi functions. Therefore, other code that also uses these WiFi functions may cause conflicts with the library, resulting in strange behaviour.

* By default, a maximum of 4 stations can be connected at a time to each AP. This can be changed to a value in the range 1 to 8 via the `setMaxAPStations` method. Once the max number has been reached, any other station that wants to connect will be forced to wait until an already connected station disconnects. The more stations that are connected, the more memory is required.
* By default, a maximum of 4 stations can be connected at a time to each AP. This can be changed to a value in the range 0 to 8 via the `setMaxAPStations` method. Once the max number has been reached, any other station that wants to connect will be forced to wait until an already connected station disconnects. The more stations that are connected, the more memory is required.

* Unlike `WiFi.mode(WIFI_AP)`, the `WiFi.mode(WIFI_AP_STA)` which is used in this library allows nodes to stay connected to an AP they connect to while in STA mode, at the same time as they can receive connections from other stations. Nodes cannot send data to an AP while in STA_AP mode though, that requires STA mode. Switching to STA mode will sometimes disconnect stations connected to the node AP (though they can request a reconnect even while the previous AP node is in STA mode).

Expand Down
2 changes: 1 addition & 1 deletion libraries/ESP8266WiFiMesh/src/ESP8266WiFiMesh.cpp
9A9D
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ bool ESP8266WiFiMesh::getAPHidden() {return _apHidden;}

void ESP8266WiFiMesh::setMaxAPStations(uint8_t maxAPStations)
{
assert(1 <= maxAPStations && maxAPStations <= 8);
assert(0 <= maxAPStations && maxAPStations <= 8);

if(_maxAPStations != maxAPStations)
{
Expand Down
2 changes: 1 addition & 1 deletion libraries/ESP8266WiFiMesh/src/ESP8266WiFiMesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ class ESP8266WiFiMesh {
* The more stations that are connected, the more memory is required.
* Will also change the setting for the active AP if this ESP8266WiFiMesh instance is the current AP controller.
*
* @param maxAPStations The maximum number of simultaneous station connections allowed. Valid values are 1 to 8.
* @param maxAPStations The maximum number of simultaneous station connections allowed. Valid values are 0 to 8.
*/
void setMaxAPStations(uint8_t maxAPStations);
bool getMaxAPStations();
Expand Down
0