140 Preferences.getMicroPython("WifiApAuthMode") |
140 Preferences.getMicroPython("WifiApAuthMode") |
141 ) |
141 ) |
142 if index == -1: |
142 if index == -1: |
143 index = 5 # default it to WPA/WPA2 in case of an issue |
143 index = 5 # default it to WPA/WPA2 in case of an issue |
144 self.apSecurityComboBox.setCurrentIndex(index) |
144 self.apSecurityComboBox.setCurrentIndex(index) |
|
145 self.apAddressEdit.setText(Preferences.getMicroPython("WifiApAddress")) |
|
146 self.apNetmaskEdit.setText(Preferences.getMicroPython("WifiApNetmask")) |
|
147 self.apGatewayEdit.setText(Preferences.getMicroPython("WifiApGateway")) |
|
148 self.apDnsEdit.setText(Preferences.getMicroPython("WifiApDNS")) |
145 |
149 |
146 # MPY Cross Compiler |
150 # MPY Cross Compiler |
147 self.mpyCrossPicker.setText(Preferences.getMicroPython("MpyCrossCompiler")) |
151 self.mpyCrossPicker.setText(Preferences.getMicroPython("MpyCrossCompiler")) |
148 |
152 |
149 # PyBoard specifics |
153 # PyBoard specifics |
230 Preferences.setMicroPython("WifiApName", self.apSsidEdit.text()) |
234 Preferences.setMicroPython("WifiApName", self.apSsidEdit.text()) |
231 Preferences.setMicroPython("WifiApPassword", self.apPasswordEdit.text()) |
235 Preferences.setMicroPython("WifiApPassword", self.apPasswordEdit.text()) |
232 Preferences.setMicroPython( |
236 Preferences.setMicroPython( |
233 "WifiApAuthMode", self.apSecurityComboBox.currentData() |
237 "WifiApAuthMode", self.apSecurityComboBox.currentData() |
234 ) |
238 ) |
|
239 Preferences.setMicroPython("WifiApAddress", self.apAddressEdit.text()) |
|
240 Preferences.setMicroPython("WifiApNetmask", self.apNetmaskEdit.text()) |
|
241 Preferences.setMicroPython("WifiApGateway", self.apGatewayEdit.text()) |
|
242 Preferences.setMicroPython("WifiApDNS", self.apDnsEdit.text()) |
235 |
243 |
236 # MPY Cross Compiler |
244 # MPY Cross Compiler |
237 Preferences.setMicroPython("MpyCrossCompiler", self.mpyCrossPicker.text()) |
245 Preferences.setMicroPython("MpyCrossCompiler", self.mpyCrossPicker.text()) |
238 |
246 |
239 # PyBoard specifics |
247 # PyBoard specifics |