feat: add setting to disable periodic check for PIC firmware updates #256
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi Robert, veel dank voor je werk aan deze firmware!
After experiencing spurious reboots on my OTGW unit I finally decided to dig into the issue. Upgrading the PIC firmware to the latest version made it a lot more stable (as far as I understand there were issues before with the voltage dropping). Still the unit appeared to reboot itself almost exactly every five minutes. From the telnet logs it was clear that it happened at the same time, i.e. each time right after the current PIC firmware version was printed. As it turns out, your firmware attempts to check whether there are new PIC firmware versions every five minutes. That makes the unit hang in my setup, because it is connected to a separate WiFi network that has no outside internet access. This PR adds a setting to disable that automatic update mechanism.
(For others stumbling upon this: note that you also need to disable NTP or set up an internal NTP server at a fixed IP to prevent outside DNS requests).