Skip to content

Enable OTA Update mechanism for any mDNS enabled platform
 #4106

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

Closed
wants to merge 2 commits into from
Closed

Enable OTA Update mechanism for any mDNS enabled platform
 #4106

wants to merge 2 commits into from

Conversation

me-no-dev
Copy link
Contributor

Adds ability to update the firmware of non-SSH boards using TXT
parameters from mDNS

Three new TXT keys are added (defaults are capital):

  1. ssh_upload=YES/no
  2. tcp_check=YES/no
  3. auth_upload=yes/NO
  • "ssh_upload" controls which Uploader should be used. Defaults to
    SSHUploader
  • "tcp_check" controls wether TCP reachability test should be performed.
    Defaults to "yes". Boards that have few TCP ports available, can use
    "no" to skip the check and update over UDP (ESP8266 for example).
  • "auth_upload" controls wether authentication is required (only for
    "ssh_upload=no").

One new pattern and two new variables are available.

  1. Var "network.port" resolves to the advertised by mDNS device port.
  2. Var "network.password" resolves to the entered device password if
    upload authentication is used, else it's empty string.
  3. Pattern "upload.network_pattern" is usable if the platform is using
    different tool/command to do network updates. If not defined,
    "upload.pattern" will be used instead.

Changes are inspired by the need of the ESP8266 Arduino project to utilize it's wireless for simple updates, it does not interfere with any other previous configuration or official Arduino boards and can be applied to basically any networked MCU.

@me-no-dev me-no-dev closed this Nov 7, 2015
@ffissore ffissore added this to the Release 1.6.7 milestone Nov 11, 2015
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

Successfully merging this pull request may close these issues.

2 participants