Skip to content

Add OTA password support #17

Open
Open
@enjoyneering

Description

@enjoyneering

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});
				}
			}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions