Repository navigation
update to stack 6x - #4
Merged
Merged
Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
… 2.1.0 - Pin the stack to 6.x @ abd4cee1 (6.0.21), tracking the 6.x branch. - Link the CAS BACnet Stack as a prebuilt STATIC library (CAS_BACNET_STACK_LINK=STATIC, built by tools/build-stack-static.sh) instead of SOURCE mode; forces the /MT static MSVC runtime. No DLL mode documented or shipped. - Every GetProperty* callback gains a trailing uint32_t* errorCode out-parameter (stack issue #974); State_Text with an out-of-range array index now answers Error(property, invalid-array-index) instead of an empty string. Every other catch-all `return false` deliberately leaves errorCode alone, per the stack's decline-and-fabricate fallback for properties this device does not serve. - BACnetStack_AddNetworkPortObjectWithNetworkNumber() renamed to BACnetStack_AddNetworkPortObject() (same arguments). - CASExampleHelper::SetNetworkPortInstance() is now called before RegisterCommonCallbacks(), since links are identified by Network Port object instance rather than network type. - common/ replaced wholesale with the series-wide vendored copy at 2.1.0 (up from 1.5.1), byte-identical to BACnetProfileExample-B-SS-CPP/common/. - APP_VERSION bumped to 1.2.0 (MINOR). - Docs regenerated: docs/objects.json (new) + the generated Objects and properties README block (zero warning rows), the series profile table synced into README, CHANGELOG unreleased entry, AGENTS.md rewritten to the 8-section template, .github/workflows/release.yml replaced with the proven Wave 0 STATIC-library template (names substituted only). Verified: local build is STATIC (CAS_BACNET_STACK_LINK:STRING=STATIC in CMakeCache.txt, /MT forced), zero warnings from main.cpp/common/. Smoke test prints CAS BACnet Stack version 6.0.21.0, common/ 2.1.0, binds UDP, sends a broadcast I-Am, and stays up; --help/--version exit 0; --deviceID overrides the announced instance. F-DCC (DM-DCC-B) verified on the wire with a real BACnet client (bacpypes3, confirmed-service round trip against the running executable): DeviceCommunicationControl disable-initiation with a wrong password -> Error(security, password-failure); the same with the right password -> SimpleAck (stops initiating); enable with the right password -> SimpleAck (restores); plain disable (deprecated at Protocol_Revision >= 20) -> Error(services, service-request-denied). tools/check-series.sh BACnetProfileExample-B-ASC-CPP -> SERIES CHECK PASSED. Co-Authored-By: Claude <noreply@anthropic.com>
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrates B-ASC-CPP to the series-wide CAS BACnet Stack 6.x pin (
abd4cee1, reports 6.0.21), switches to the STATIC link mode, and refreshescommon/to the series-wide vendored copy (2.1.0).6.x@abd4cee1;.gitmodulestracks the6.xbranch.CASBACnetStack_x64_Release.lib(CAS_BACNET_STACK_LINK=STATIC), built bytools/build-stack-static.shfrom the stack's own project files (ReleaseLib|x64). No DLL mode documented or shipped.GetProperty*callback gains a trailinguint32_t* errorCodeout-parameter (used once —State_Textout-of-range now answersinvalid-array-indexinstead of silently returning an empty string);BACnetStack_AddNetworkPortObjectWithNetworkNumberrenamed toBACnetStack_AddNetworkPortObject;CASExampleHelper::SetNetworkPortInstance()added beforeRegisterCommonCallbacks().common/replaced wholesale with the current series-wide copy (2.1.0, byte-identical toBACnetProfileExample-B-SS-CPP/common/).APP_VERSIONbumped to 1.2.0 (MINOR).docs/objects.json+ generated "Objects and properties" README block (zero warning rows), series profile table synced into README,CHANGELOG.mdunreleased entry,AGENTS.mdrewritten to the 8-section template,.github/workflows/release.ymlreplaced with the proven Wave 0 STATIC-library template (names substituted only).Verification
CAS_BACNET_STACK_LINK:STRING=STATICinCMakeCache.txt,/MTforced, zero warnings frommain.cpp/common/.--port 47821): printsCAS BACnet Stack version: 6.0.21.0,Common helper (common/) version: 2.1.0, binds the UDP port, sends a broadcast I-Am, stays up.--help/--versionexit 0;--deviceIDoverrides the announced instance.bacpypes3, confirmed-service round trip against the running executable, password temporarily set to a non-empty value for the test and reverted before commit):disable-initiationwith a wrong password →Error(security, password-failure)disable-initiationwith the right password →SimpleAck(stops initiating)enablewith the right password →SimpleAck(restores)disable(deprecated at Protocol_Revision ≥ 20) →Error(services, service-request-denied)bacpypes3check above covers discovery + the DCC behaviors; a GUI-client pass is recommended before the next release if available.tools/check-series.sh BACnetProfileExample-B-ASC-CPP→SERIES CHECK PASSED.common/file (also present in the B-SS-CPP reference;common/is not this repo's to edit — owned by the B-AAC Wave-1 change).🤖 Generated with Claude Code