1168 @return tuple containing a flag indicating success and an error message |
1168 @return tuple containing a flag indicating success and an error message |
1169 @rtype tuple of (bool, str) |
1169 @rtype tuple of (bool, str) |
1170 """ |
1170 """ |
1171 if security is None or password is None: |
1171 if security is None or password is None: |
1172 security = 0 |
1172 security = 0 |
1173 password = "" |
1173 password = "" # secok |
1174 |
1174 |
1175 if self._deviceData["wifi_type"] == "picow": |
1175 if self._deviceData["wifi_type"] == "picow": |
1176 country = Preferences.getMicroPython("WifiCountry").upper() |
1176 country = Preferences.getMicroPython("WifiCountry").upper() |
1177 if security: |
1177 if security: |
1178 security = 4 # Pico W supports just WPA/WPA2 |
1178 security = 4 # Pico W supports just WPA/WPA2 |