mikalhart / ESP32-OTA-Pull

An ESP32/Arduino library for doing easy "pull"-based OTA ("Over The Air") updates
MIT License
34 stars 11 forks source link

Add getVersion() #2

Closed nseidle closed 1 year ago

nseidle commented 1 year ago

This PR:

I needed this so that I could check the version and show it to the user before they agreed to proceed with update.

It's an open question if other variables need to be exposed.

Love the library. Thanks for this!

mikalhart commented 1 year ago

Many thanks for this...!

mikalhart commented 1 year ago

@nseidle I decided to change new method to GetVersion() (with capital G) just to maintain consistency with other methods. (Hope this doesn't cause too much heartache?) But thanks again. This is an obvious and useful addition that I should have thought of...!