Skip to content

Allow sketch version loaded on board to be identified by its Git commit hash #5618

@MartinHN

Description

@MartinHN

would it be useful for anyone else than myself to commit and embed the url and git hash in EEPROM (or code) every time a new upload is done to a piece of hardware.
such method, would allow us to retrieve current code on whatever duino even if it's laying on your shelf for months (or years..).

pro:
a piece of hardware is linked to it's code without having to store it internally
with simple serial protocol, arduino could open the uploaded version if asked

cons :
not sure it will be beginner friendly (the arduino way...)

if this functionality has to stay outside of core arduino app, can arduino app execute some scripts (triggered by hooks or else..) before uploading to implement such functionnality without modifying arduino code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    arduino-builderThe tool used to handle the Arduino sketch compilation processarduino-cliRelated to the arduino-cli toolfeature requestA request to make an enhancement (not a bug fix)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions