-
Notifications
You must be signed in to change notification settings - Fork 89
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
Define NO_OTA_NETWORK
to disable all network-related functionality
#191
Conversation
the change in cpp does nothing |
It should disable the compilation unit, optimizing the build speed and not relying on the link-time code elimination. |
the cpp will always be compiled and it will not see the define from ino or other cpp.
|
Ah, I see what you mean, but I'm actually using PlatformIO so it will see
the define (`build_flags` get applied to all the libraries as well)
…On Mon, 13 Mar 2023, 12:42 Juraj Andrássy, ***@***.***> wrote:
It should disable the compilation unit, optimizing the build speed and not
relying on the link-time code elimination. Should I revert this change?
the cpp will always be compiled and it will not see the define from ino or
other cpp.
It should be enough to change in ArduinoOTA.h
#ifdef NO_OTA_NETWORK
// don't create ArduinoOTA instance
#elif defined(ethernet_h_) || defined(ethernet_h) // Ethernet library
—
Reply to this email directly, view it on GitHub
<#191 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALP3FHAOOKPNWM43X6BTBDW332Y7ANCNFSM6AAAAAAVYIGYHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
if you write a custom firmware in PlatformIO you could just include InternalStorage.h |
As I'm building for multiple platforms, essentially I need to copy this section of code: Lines 23 to 35 in ee82be9
This could be moved to a separate header, in this case I could include it directly. |
you can copy that section to your firmware and remove the lines for platforms your firmware doesn't support. then it is only a few lines btw: I am curios now. First I thought you work on Edgent improvements, but that would require Arduino IDE compatibility. Then I thought you make some IoT firmware for a big customer, but that would be one platform. :-) |
Yeagh, copying those lines is what we do now, but at the same time it's something I'd like to avoid. I.e. ArduinoOTA could get updated at any point with new platform support, at which point it would require changes in our libraries as well. You're correct, ArduinoOTA will be compiled in Arduino IDE in many cases, I just thought it's a good opportunity to improve the PlatformIO developer experience as well. It's related to the Edgent development (and to customers of all sizes), however we're not disclosing the details yet. ;) |
ok, then, as I write in one of the previous comments, I would prefer to have just the |
Works for me. Just reverted the other changes |
I've developed a custom firmware delivery mechanism (i.e. using a cellular or packet radio connection on an ESP32), so I'd like to disable the built-in implementation.