| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
- 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.
There was a problem hiding this comment.
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:
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. |
Sorry, something went wrong.
…always set properties to a list. fix: analog value write present value logic for enabled and out-of-service.
… for read-only objects
* 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
| Back | FazBrowse Home | New Git URL |
No description provided.