Skip to content

FR: Setoption to disable boot count for deep sleeping devices #6930

@andrethomas

Description

@andrethomas

Would like a setoption to disable the boot count for special cases like deepsleep.

When teleperiod is 10 it does not appear to save the boot count to flash.

My observation is that when teleperiod > 14 the device will output the following on the seriallog

11:04:52 APP: Boot Count 87
11:04:52 CFG: Saved to flash at F5, Count 137, Bytes 4096

Although this is useful for diagnostic purposes it would be nice to conditionally disable this specific write if deepsleep is enabled by either a setoption or compiler directive.

This is to avoid an unwanted number of flash cycles when deep sleep is being used.

Have you looked for this feature in other issues and in the wiki?

Is your feature request related to a problem? Please describe.

Unwanted flash cycles.

Describe the solution you'd like

Be able to set this using a setoption.

Describe alternatives you've considered

Using teleperiod of < 11 but then the device does not always get NTP time.

Metadata

Metadata

Assignees

Labels

enhancementType - Enhancement that will be worked onfixedResult - The work on the issue has ended

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions