Skip to content

fix: uses appropriate typings for property read/write request payloads#78

Merged
robertsLando merged 1 commit into
bacnet-js:masterfrom
jacoscaz:read-write-property-requests-payload-types
May 7, 2026
Merged

fix: uses appropriate typings for property read/write request payloads#78
robertsLando merged 1 commit into
bacnet-js:masterfrom
jacoscaz:read-write-property-requests-payload-types

Conversation

@jacoscaz
Copy link
Copy Markdown
Contributor

This PR fixes a mistyping affecting read/write request payloads. For some reason, the payloads of events modelling read/write requests had been defined separately and independently of the payload actually returned by the .decode() function of the service handler matching the incoming request.

See src/lib/client.ts@530 for the parser invocation
See src/lib/client.ts@557 for triggering of service request events

I need this to surface the priority value at the typings level, so that I may use it to address bacnet-js/device#32 .

This commit fixes a mistyping affecting read/write request payloads.
For some reason, the payloads of events modelling read/write requests
had been defined separately and independently of the payloads actually
returned by the .decode() function of the service handler matching the
incoming request.

See src/lib/client.ts@530 for the parser invocation
See src/lib/client.ts@557 for triggering of service request events
@jacoscaz jacoscaz requested a review from robertsLando April 28, 2026 15:51
@jacoscaz
Copy link
Copy Markdown
Contributor Author

jacoscaz commented May 7, 2026

@robertsLando ping! Just in case you forgot, no pressure at all if you're just busy.

@robertsLando
Copy link
Copy Markdown
Member

Oh Sorry!

@robertsLando robertsLando merged commit 43fbd92 into bacnet-js:master May 7, 2026
12 checks passed
jacoscaz added a commit to bacnet-js/device that referenced this pull request May 11, 2026
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