This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
121 | 121 |
| |
122 | 122 |
| |
123 | 123 |
| |
124 |
| - | |
| 124 | + | |
125 | 125 |
| |
126 | 126 |
| |
127 | 127 |
| |
|
1 commit comments
dzsoni commentedon Apr 3, 2021
I think it's become dangerous. Then it is stored in wifi_sta_config_t struct , without null-termination.
Then... somebody try with this:
wifi_config_t conf;
esp_wifi_get_config(WIFI_IF_STA, &conf);
String ssid= String(reinterpret_cast<char*>(conf.sta.ssid));
conf.ssid only 31 char + '/0' temination
or
over reading to the conf.passsw?
Hm.