-
Notifications
You must be signed in to change notification settings - Fork 7.6k
added OTA Update S3 example with a sample bin #445
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
Conversation
Build & upload | ||
Step 1 : Preferences > Show verbose output during `compilation` | ||
Step 2 : ctrp + r (Verify sketch or build sketch) | ||
Step 3 : In the verbose log, you will find a path t0 `sketch-name.iono.bin` on your machine. Example from Apple OSX: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have a menu Sketch -> Export compiled binary
which puts the bin in the sketch folder. Maybe use that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Did not know about that option 👍 . Fixing it.
// chill | ||
} | ||
|
||
void execOTA() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will advise towards moving your functions above setup() and loop(). Reason is that while Arduino IDE and some other tools that use Arduino declare all your functions before compiling, this is not a standard, so if you grab this code and paste it into "make" based build, it will fail with a bunch of errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this order :)
String getHeaderValue(String header, String headerName);
void execOTA();
void setup();
void loop();
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will Do.
Thanks. |
OTA Update example with AWS S3. Sample bin added along with sketch for quick validation.