Skip to content

feat(go): report retained uptime to local and cloud - #44

Merged
samuelbles07 merged 3 commits into
developmentfrom
go/feat/improve-boot-count
Jul 24, 2026
Merged

feat(go): report retained uptime to local and cloud#44
samuelbles07 merged 3 commits into
developmentfrom
go/feat/improve-boot-count

Conversation

@samuelbles07

@samuelbles07 samuelbles07 commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

Report retained whole-minute uptime through both Local Server measures and cloud measurement POSTs. The shared uptime utility lives in airgradient-common, advances across deep sleep, and starts a new session after non-deep-sleep resets.

Changes

  • Add retained monotonic time support to the RTOS abstraction
  • Add shared retained uptime calculation in airgradient-common
  • Report dynamic uptime through Local Server and cloud measurement payloads
  • Require HTTP measurement POST callers to provide the boot value
  • Update host integration coverage and service documentation

Validation

  • clang-format checks passed
  • Markdown pre-commit checks passed
  • Host syntax check passed for the shared uptime source
  • Full host tests and Go/reference firmware builds passed before the final common-source relocation; final CI is pending
  • Hardware validation remains pending for deep-sleep retention and reset boundaries

Sample retained uptime when each cloud POST begins so delayed posts do not report stale metadata.

BREAKING CHANGE: http_post_measures overloads now require a uint32_t boot argument.
@samuelbles07 samuelbles07 changed the title feat(go): report retained uptime in local API feat(go): report retained uptime to local and cloud Jul 24, 2026
@samuelbles07
samuelbles07 merged commit 669bd48 into development Jul 24, 2026
2 checks passed
@samuelbles07
samuelbles07 deleted the go/feat/improve-boot-count branch July 24, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant