• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bacnet-js / client
83%

Build:
DEFAULT BRANCH: master
Repo Added 30 Jun 2025 08:45AM UTC
Token v4In3fzt0YTUeHy5shOCNKx8KCw0Tpk59 regen
Build 51 Last
Files 44
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • async-methods
  • better-types
  • chore/support-for-nodetype-enum
  • copilot/fix-31
  • copilot/update-examples-folder
  • feat/copilot-instructions
  • master
  • no-callbacks-yes-promises
  • rename-repo

20 Nov 2025 09:52AM UTC coverage: 82.967% (-0.01%) from 82.981%
19532691339

push

github

web-flow
docs: update examples to use promise-based APIs (#60)

All examples were using deprecated callback-based APIs. Updated to use
async/await pattern matching the current library implementation.

### Changes

**discover-devices.ts**
- Converted `readProperty()` callbacks to async/await
- Removed unused `DecodeAcknowledgeSingleResult` import

**subscribe-cov.ts**
- Converted `subscribeCov()` callbacks to async/await

**read-device.ts**
- Refactored helper functions to async: `getAllPropertiesManually()`,
`parseValue()`, `parseDeviceObject()`
- Eliminated callback counting logic in favor of sequential async/await
- Reduced complexity from 255 to 220 lines

### Example

Before:
```typescript
bacnetClient.readProperty(address, objectId, PropertyIdentifier.OBJECT_NAME, 
  (err, value) => {
    if (err) {
      console.log(err)
    } else {
      // nested callback for vendor name
      bacnetClient.readProperty(address, objectId, PropertyIdentifier.VENDOR_NAME,
        (err2, valueVendor) => {
          // handle results
        }
      )
    }
  }
)
```

After:
```typescript
try {
  const value = await bacnetClient.readProperty(address, objectId, PropertyIdentifier.OBJECT_NAME)
  const valueVendor = await bacnetClient.readProperty(address, objectId, PropertyIdentifier.VENDOR_NAME)
  // handle results
} catch (err) {
  console.log(err)
}
```

> [!WARNING]
>
> <details>
> <summary>Firewall rules blocked me from connecting to one or more
addresses (expand for details)</summary>
>
> #### I tried to connect to the following addresses, but was blocked by
firewall rules:
>
> - `255.255.255.255`
>
> If you need me to access, download, or install something from one of
these locations, you can either:
>
> - Configure [Actions setup
steps](https://gh.io/copilot/actions-setup-steps) to set up my
environment, which run before the firewall is enabled
> - Add the appropriate URLs or hosts to the custom allowlist in this
repository's [Copilot coding agent
settings](https://g... (continued)

803 of 1241 branches covered (64.71%)

Branch coverage included in aggregate %.

4935 of 5675 relevant lines covered (86.96%)

37.32 hits per line

Relevant lines Covered
Build:
Build:
5675 RELEVANT LINES 4935 COVERED LINES
37.32 HITS PER LINE
Source Files on master
  • Tree
  • List 44
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
19532691339 master docs: update examples to use promise-based APIs (#60) All examples were using deprecated callback-based APIs. Updated to use async/await pattern matching the current library implementation. ### Changes **discover-devices.ts** - Converted `readP... push 20 Nov 2025 09:54AM UTC web-flow github
82.97
19532665211 copilot/update-examples-folder Merge 2afe3461a into 7efc33ce7 Pull #60 20 Nov 2025 09:53AM UTC web-flow github
82.97
19423794503 copilot/update-examples-folder Merge a221a11cc into 7efc33ce7 Pull #60 17 Nov 2025 09:09AM UTC web-flow github
82.97
18335790697 master chore: migrate release-it configuration to .release-it.json push 08 Oct 2025 06:27AM UTC robertsLando github
82.98
18012509478 chore/support-for-nodetype-enum Merge e0dcbf1d6 into 9c9692af6 Pull #55 25 Sep 2025 03:29PM UTC web-flow github
82.97
16237762999 master chore(release): 3.0.0 push 12 Jul 2025 12:01PM UTC robertsLando github
82.98
16237746589 master feat!: replaces callbacks with promises for confirmed/acknowledged service methods (#52) - Closes #50 - Closes #51 - Fixes https://github.com/bacnet-js/client/issues/51#issuecomment-3052395150 BREAKING CHANGE: this PR changes the consumer-facin... push 12 Jul 2025 11:58AM UTC web-flow github
82.97
16223613607 no-callbacks-yes-promises Merge 0a1daa053 into d32db0256 Pull #52 11 Jul 2025 03:25PM UTC web-flow github
82.97
16219480137 no-callbacks-yes-promises Merge beef13a1a into d32db0256 Pull #52 11 Jul 2025 12:02PM UTC web-flow github
82.97
16219202379 no-callbacks-yes-promises Merge 4bb63bad6 into d32db0256 Pull #52 11 Jul 2025 11:46AM UTC web-flow github
82.98
See All Builds (51)

Badge your Repo: client

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc