Skip to content

WifiMulti.addAP code inspection : Incoherent test for max length of passphrase #2247

Closed
@SteveToulouse

Description

@SteveToulouse

Description

WifiMulti.addAP limits the passphrase to 63 characters by the test at L175.

On the other hand, Wifi.begin recognises a length of 64 chars as a PSK instead of a passphrase, see tests at L109 and L118.

This seems to be incoherent (wifimulti.run calls wifi.begin) unless we aren't allowed to pass PSK to wifimulti by design?

NOTE : SSID is handled the same in both places (31 char max). EDIT: the standard says 32 characters max for an SSID so there may be rare cases where an AP has a full 32 char, non zero-terminated SSID and in that case ESP8266 won't be able to connect to it.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions