0.7.1 • Published 9 months ago

@nordicsemiconductor/nrf-device-lib-js v0.7.1

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

nRF Device Library Node.js Bindings

These are C++ bindings to the nrf-device-lib written using the N-API.

How to build

The following must be installed to build. See more detailed version information in YAML files for Azure.

  • CMake
  • (Mac only) LLVM (see version information in YAML files for Azure). Can be installed using brew.
  • (Linux only) gcc, libusb.
  • (Max and Linux only) Ninja. Can be installed in Mac using brew.
  • (Windows only) Microsoft Visual Studio Community.
  • Node.js/npm. Can be installed in Mac/Linux using nvm or in Windows using nvm-windows.

Run tests

The tests expect certain devices to be connected in order to run. Having the following devices connected should be sufficient when runnint npm test

  • nRF52 Dongle (PCA10059) - Ensure it is in DFU mode
  • nRF52 (PCA10056) - Ensure there is no readback protection
  • nRF91 (PCA10090) - Ensure there is no readback protection

Release

The procedure to release nrf-device-lib-js is described in the internal wiki.

Notes (Q/A):

Q: I see no output of the console.log() in the CI A: Possible solution would be to add spyOn(console, 'log').and.callThrough(); in beforeAll() -- from stackoverflow

Q: I want to add tab in the test logging A: Add \t at the start of console.warn('\t', message);

Q: How can I conditionally skip a test? A: You can use xit instead if it for running the test callback. See https://jasmine.github.io/api/4.6/global.html#xit for more info.

0.6.13

10 months ago

0.7.1

9 months ago

0.7.0

9 months ago

0.6.9

12 months ago

0.6.12

11 months ago

0.6.11

11 months ago

0.6.8

1 year ago

0.6.3

1 year ago

0.6.2

1 year ago

0.6.5

1 year ago

0.6.4

1 year ago

0.5.0

1 year ago

0.6.1

1 year ago

0.6.0

1 year ago

0.5.0-pre9

1 year ago

0.5.0-pre8

1 year ago

0.5.0-pre7

1 year ago

0.5.0-pre1

1 year ago

0.5.0-pre2

1 year ago

0.5.0-pre5

1 year ago

0.5.0-pre6

1 year ago

0.5.0-pre3

1 year ago

0.5.0-pre4

1 year ago

0.4.15

2 years ago

0.4.13

2 years ago

0.4.14

2 years ago

0.4.12

2 years ago

0.4.10

2 years ago

0.4.9

2 years ago

0.4.8

2 years ago

0.4.11

2 years ago

0.4.7

2 years ago

0.4.5

2 years ago

0.4.6

2 years ago

0.4.4

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.3.20

2 years ago

0.3.19

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.18

2 years ago

0.3.17

2 years ago

0.3.16

3 years ago

0.3.15

3 years ago

0.3.14

3 years ago

0.3.13

3 years ago

0.3.12

3 years ago

0.3.11

3 years ago