Skip to content

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

Open
jacoscaz wants to merge 1 commit intobacnet-js:masterfrom
jacoscaz:read-write-property-requests-payload-types
Open

fix: uses appropriate typings for property read/write request payloads#78
jacoscaz wants to merge 1 commit intobacnet-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
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