Skip to content

Feature: Import config through a QR code #385

Description

@EtienneMiret

AVNC already has the possibility to import a configuration file. In order to ease the setup of multiple Android terminals, we would like to scan a QR code, that could either give a URL where to fetch that config file, or the config file itself.

Essentially I want to add a "scan" button next to the "import" button. This would open the camera, scan the QR code, resolve it to a config file and send it to the code that already process an imported file.

I have some time available to work on this. Would a PR be welcome?

Also, we should probably discuss about the data schema for the QR code. What I have in mind is something like: AVNC:Type[:Option]*;Payload. E.g.:

  • AVNC:U;https:/example.org/config/file for a URL that resolve to a config file,
  • AVNC:F;raw config file for a config file embedded into the QR code.

Design intents:

  • The AVNC prefix is a magic code to check the QR code is intended for AVNC.
  • Using a colon as an option separator and a semi-colon before the data allows adding options in future releases, with earlier releases ignoring them and still finding the right payload.

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