Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OTA password support #17

Open
enjoyneering opened this issue Feb 12, 2024 · 0 comments
Open

Add OTA password support #17

enjoyneering opened this issue Feb 12, 2024 · 0 comments

Comments

@enjoyneering
Copy link

enjoyneering commented Feb 12, 2024

Hi, can you add the OTA passwords support like LeisureLadi did for ESP8266? Thank you in advance.

			// ask for a password
			String passCode = JOptionPane.showInputDialog(editor, "Please enter password:\n(leave empty if none required!)","ESP8266LittleFS OTA Update", JOptionPane.QUESTION_MESSAGE);
			if(passCode != null) {
				if(passCode.isEmpty()) {
					sysExec(new String[]{pythonCmd, espota.getAbsolutePath(), "-i", serialPort, "-s", "-f", imagePath});
				} else {	
					sysExec(new String[]{pythonCmd, espota.getAbsolutePath(), "-i", serialPort, "-s", "-f", imagePath, "-a", passCode});
				}
			}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant