Skip to content
This repository was archived by the owner on Aug 3, 2026. It is now read-only.

Implement teardown contract for ESPEventBus - #1

Merged
zekageri merged 1 commit into
mainfrom
feature/esp-eventbus/teardown/teardown-contract-esp-eventbus
Feb 24, 2026
Merged

zekageri merged 1 commit into
mainfrom
feature/esp-eventbus/teardown/teardown-contract-esp-eventbus

Conversation

@zekageri

Copy link
Copy Markdown
Collaborator

Summary

  • add public isInitialized() to ESPEventBus
  • harden teardown lifecycle by resetting subscriptions via allocator-safe reconstruction (supports usePSRAMBuffers toggles across re-init)
  • keep destructor teardown through deinit() and ensure teardown remains idempotent/pre-init safe
  • add lifecycle tests for pre-init deinit(), repeated deinit(), and init -> deinit -> init with subscription reset verification
  • document explicit deinit() usage in README and example

Validation

  • pio test -e esp32dev -f test_eventbus --without-uploading (failed locally: pio command not found in environment)

@zekageri
zekageri merged commit 6afafa5 into main Feb 24, 2026
6 checks passed
@zekageri
zekageri deleted the feature/esp-eventbus/teardown/teardown-contract-esp-eventbus branch February 26, 2026 13:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant