Skip to content

Bugfix/example-app-uevent-event-parsing#1221

Merged
skarg merged 5 commits intomasterfrom
bugfix/example-app-uevent-event-parsing
Feb 5, 2026
Merged

Bugfix/example-app-uevent-event-parsing#1221
skarg merged 5 commits intomasterfrom
bugfix/example-app-uevent-event-parsing

Conversation

@skarg
Copy link
Collaborator

@skarg skarg commented Feb 5, 2026

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request fixes a bug in event notification parsing and enhances the example applications for sending event notifications. The main issue was an off-by-one error in the event parsing loop that caused the first argument to be skipped.

Changes:

  • Fixed event parsing to start from index 0 instead of 1 in event_notify_parse function
  • Added new Send_UEvent_Notify_Device function for sending unconfirmed event notifications by device ID
  • Enhanced apps/uevent/main.c with device binding logic, event loop, and comprehensive help text
  • Updated apps/event/main.c to use the fixed parsing logic and added usage examples

Reviewed changes

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

Show a summary per file
File Description
src/bacnet/event.c Fixed loop initialization in event_notify_parse from argi = 1 to argi = 0 to correctly parse all arguments
src/bacnet/basic/service/s_uevent.h Added declaration for new Send_UEvent_Notify_Device function
src/bacnet/basic/service/s_uevent.c Implemented Send_UEvent_Notify_Device to send notifications by device ID using address cache lookup
apps/uevent/main.c Added device binding logic, event loop with timeout handling, receive buffer, and extensive help documentation
apps/event/main.c Updated to use fixed event_notify_parse with proper error handling and added usage example

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@skarg skarg merged commit 94e79ef into master Feb 5, 2026
36 checks passed
@skarg skarg deleted the bugfix/example-app-uevent-event-parsing branch February 5, 2026 19:42
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