Global constant is not accessible inside the F11 WLAN_ESP32 ConnectToSSID component macro.
-
Bijumon
- Posts: 30
- http://meble-kuchenne.info.pl
- Joined: Fri Dec 30, 2022 11:44 am
- Has thanked: 7 times
- Been thanked: 10 times
Global constant is not accessible inside the F11 WLAN_ESP32 ConnectToSSID component macro.
Global constant is not accessible inside the F11 WLAN_ESP32 ConnectToSSID component macro.
- Attachments
-
- Untitled.jpg (67.93 KiB) Viewed 31 times
-
mnfisher
- Valued Contributor
- Posts: 1812
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 152 times
- Been thanked: 853 times
Re: Global constant is not accessible inside the F11 WLAN_ESP32 ConnectToSSID component macro.
I've also reported this - don't use global string constants here - connection will fail with the password as the two strings concatenated.
Using a string constant (Connect("SSID", "Password") or string variables is okay though..
The string length FCsz_VAR doesn't include the termination character (\0)
Martin
Using a string constant (Connect("SSID", "Password") or string variables is okay though..
The string length FCsz_VAR doesn't include the termination character (\0)
Martin