-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
questions for future release ? #3
Comments
@stef-ladefense Thank you for your comment. Yes, I need to make it clearer in the README, but the library is indeed designed to support multiple Configurations in the same .json. Let's say you had one device that ran using the "ESP32 Device Module" board profile. You might choose to create a Configuration block with
If your other device is, say, ESP32 S3 Dev Module, you could make a second block with
If you have two variants using the same Board, then perhaps that's when you'd define "Config" strings, e.g
or
The library simply uses the first Configuration block it comes to that fully matches. Clear? |
@stef-ladefense, May I ask... what tools do you use for your automated builds? I, too, would like to be able to make a small change to a sketch, then automatically recompile (and post?) the 10 different binaries for all the various devices it runs on. Thanks! M |
hi @mikalhart i tested 2 config in one json
but only first work, |
unfortunately it is not automatic. I use the preprocessor. for example, I have several CO2 detectors, the card is the same, an esp32s2, but the sensor is different, senseair S8, Sensirion SCD40 or 41, etc. it must be possible to automate, but I now only make a few modifications, it is often adaptation following an update of the core or a library of a routine that no longer works. |
@stef-ladefense Try this syntax:
|
very good, work fine |
Great! |
@mikalhart - Funny you should ask. We are using your lib inside our github action to compile our production firmware. While not exactly what you are looking for, we are compiling and posting different binaries (production vs beta release) to a binaries repo. To address the 4MB vs 16MB, we leverage a python based Firmware Uploader to ping the ESP32 for its flash size during prelim step, then use the appropriate partition binary when loading the new firmware. We don't do automatic build-on-push but it's trivial to implement that in the yml script. Now, for those nuggets of (hopefully) helpful info, may I please request you do a new release so that I can stop maintaining a fork because GetVersion() is not in your release and is breaking our firmware builds? :) |
@nseidle - Those nuggets were indeed golden: thank you very much! Re the release, would you be so kind as to check on your end if anything is amiss with what, from my end looks like a good release of ESP32-OTA-Pull? Yes, it's marked "pre-release" quality in Github, but the version that appears in the Arduino Library Manager as v 1.0.0 does have GetVersion(). |
Never mind! I must be sleep deprived. It's working fine now. |
hi @mikalhart , i test version for use with esp32 and esp8266. |
Hi,
Thank you for your library, it is very good, and is much more flexible than my homemade solution.
I was wondering things
I have several ESP modules that do (again with my update code) automatic updates when I release a new version.
There are identical modules, and variants, which may have slightly different hardware, in which case the bin is of course compiled accordingly.
But they share the same source, it's just #define that changes the code.
Is it possible to have a single json file that would contain multiple configs? instead of having a json/bin pair for each variant.
Steph
The text was updated successfully, but these errors were encountered: