SmingHub / Sming

Sming - powerful open source framework simplifying the creation of embedded C++ applications.
https://sming.readthedocs.io
GNU Lesser General Public License v3.0
1.47k stars 348 forks source link

OpenWifi not working #1891

Closed etmmahi closed 4 years ago

etmmahi commented 4 years ago

Try example Basic_Wifi with settings:

export WIFI_SSID="OpenNetwork" export WIFI_PWD=""

The compile will fail because WIFI_PWD is not taken into the compile flags. This happens due to the ifdef WIFI_PWD check in component.mk

pse fix

Martijn

mikee47 commented 4 years ago
make WIFI_SSID=OpenNetwork WIFI_PWD=
mikee47 commented 4 years ago

I see what you mean.

mikee47 commented 4 years ago

@etmmahi This should sort problem if you want to try it:

diff --git a/Sming/component.mk b/Sming/component.mk
index d63052f23..db370918e 100644
--- a/Sming/component.mk
+++ b/Sming/component.mk
@@ -67 +67 @@ endif
-ifdef WIFI_PWD
+ifneq ($(origin WIFI_PWD),undefined)