Skip to content

Feature/bacnet lighting command event callback#1376

Merged
skarg merged 5 commits into
masterfrom
feature/bacnet-lighting-command-event-callback
Jun 4, 2026
Merged

Feature/bacnet lighting command event callback#1376
skarg merged 5 commits into
masterfrom
feature/bacnet-lighting-command-event-callback

Conversation

@skarg

@skarg skarg commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new “lighting command event” callback mechanism to the BACnet lighting command engine, and extends the existing Zephyr-based unit test to validate that event notifications fire with expected operation/parameter values.

Changes:

  • Introduces lighting_command_event_callback plus event notification list support (Event_Notification_Head, add/set APIs).
  • Emits event notifications from lighting operations (fade, ramp, step, warn blink, stop/none, restore/default/toggles).
  • Updates the lighting command unit test to assert event notifications and fixes a timer-notification API typo in the test (and header).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
test/bacnet/basic/sys/lighting_command/src/main.c Adds test-side event callback tracking/assertions; updates timer notification add call spelling.
src/bacnet/basic/sys/lighting_command.h Adds event callback types/APIs and a new event notification head in the public data struct; renames timer notification API.
src/bacnet/basic/sys/lighting_command.c Implements event notification list/add/set and emits notifications from lighting command operations.

Comment thread src/bacnet/basic/sys/lighting_command.c
Comment thread src/bacnet/basic/sys/lighting_command.h Outdated
Comment thread src/bacnet/basic/sys/lighting_command.h
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@skarg skarg merged commit 81f8cd0 into master Jun 4, 2026
36 checks passed
@skarg skarg deleted the feature/bacnet-lighting-command-event-callback branch June 4, 2026 22:54
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.

2 participants