FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Feature/read only analog value present value by skarg · Pull Request #1424 · bacnet-stack/bacnet-stack · GitHub

Feature/read only analog value present value - #1424

Merged
skarg merged 8 commits into
masterfrom
feature/read-only-analog-value-present-value
Jul 16, 2026
Merged

Feature/read only analog value present value#1424
skarg merged 8 commits into
masterfrom
feature/read-only-analog-value-present-value

Conversation

skarg commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

skarg added 5 commits July 15, 2026 09:26
- Move Analog Value object structure into the C module and add get/set for the members.
- Added functions to get and set `Min_Pres_Value` and `Max_Pres_Value` properties.
- Implemented write enable/disable functionality for the Analog Value object.
- Enhanced the test suite to cover new property APIs and validate their functionality.
- update float initializations to use 'f' suffix for consistency
- remove write-enabled for present-value coupling to out-of-service flag.
…ionally skip Present_Value and allow writing when out-of-service is TRUE.
skarg linked an issue Jul 15, 2026 that may be closed by this pull request
skarg requested a review from Copilot July 15, 2026 17:56

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Pull request overview

This PR updates several BACnet object implementations to better control Present_Value writability (including Out_Of_Service behavior) and expands Analog Value capabilities with min/max present value support and additional direct-API tests.

Changes:

  • Add/adjust “write-enabled” + Out_Of_Service-driven Present_Value write behavior across multiple object types.
  • Extend Analog Value with Min/Max Present Value properties and new exported helper APIs; add unit tests for the direct APIs.
  • Normalize some float literals/range comparisons (e.g., 1.414f, isgreaterequal/islessequal, FLT_MAX defaults).

Reviewed changes

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

Show a summary per file
File Description
test/bacnet/basic/object/av/src/main.c Adds direct Analog Value API tests and required C library includes.
src/bacnet/basic/object/time_value.c Updates writable property list behavior and Out_Of_Service / Present_Value write logic.
src/bacnet/basic/object/msv.c Updates writable property list behavior and Present_Value write permissions.
src/bacnet/basic/object/ms-input.c Updates writable property list behavior and Present_Value write permissions; shifts some lookups to Multistate_Input_Object().
src/bacnet/basic/object/bv.c Updates writable property list behavior, Present_Value write permissions, and default Write_Enabled.
src/bacnet/basic/object/bitstring_value.c Updates writable property list behavior.
src/bacnet/basic/object/bi.c Updates writable property list behavior and Present_Value write permissions.
src/bacnet/basic/object/av.h Removes the public ANALOG_VALUE_DESCR typedef and exports new AV APIs (min/max, write enable).
src/bacnet/basic/object/av.c Introduces new AV object_data struct, min/max properties, and updated Present_Value write handling.
src/bacnet/basic/object/ao.c Tightens float literal suffixes and uses isgreaterequal/islessequal for range checks; updates defaults.
src/bacnet/basic/object/ai.c Expands Writable_Properties list and normalizes float suffixes in a few places.

Comment thread src/bacnet/basic/object/av.c Outdated
Comment thread src/bacnet/basic/object/time_value.c Outdated
Comment thread src/bacnet/basic/object/av.c Outdated
Comment thread src/bacnet/basic/object/bv.c Outdated
Comment thread src/bacnet/basic/object/bi.c Outdated
Comment thread src/bacnet/basic/object/ms-input.c Outdated
Comment thread src/bacnet/basic/object/time_value.c Outdated
skarg merged commit 851d03a into master Jul 16, 2026
36 checks passed
skarg deleted the feature/read-only-analog-value-present-value branch July 16, 2026 09:59
ryanjmulder pushed a commit to AntrumIAQ/bacnet-stack that referenced this pull request Jul 16, 2026
* feat: analog value min/max and read-only options.

- Move Analog Value object structure into the C module and add get/set for the members.
- Add `Min_Pres_Value` and `Max_Pres_Value` properties to Analog Value object
- Implement write enable/disable functionality for the Analog Value object.
- Enhance the test suite to cover new property APIs and validate their functionality.
- Update float initialization to use 'f' suffix for consistency in analog objects
- Remove write-enabled for present-value coupling to out-of-service flag in value objects
- Change writable properties for value objects to conditionally skip Present_Value and allow writing when out-of-service is TRUE.
- Enable write by default for value objects that support the Write_Enable flag.
- Add writable property list tests for various BACnet object types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

Question: Add Min_Pres_Value / Max_Pres_Value as optional properties to Analog Input and Analog Value? What about "improving" callbacks?

2 participants


Back | FazBrowse Home | New Git URL