Skip to content

Node package for communicating with lab balances using the KERN Communications Protocol

License

Notifications You must be signed in to change notification settings

mytosbio/kern-communications-node

Repository files navigation

Sensirion HDLC Node

Build lint test Publish to GitHub Pages

Node driver for Sensirion HDLC devices. This package is largely modeled after Sensirion/python-shdlc-driver: Python Driver for Sensirion SHDLC Devices.

Please note Mytos Bio has no affiliation with Sensirion.

Documentation

For basic module documentation please see Sensirion HDLC Node Documentation. This documentation is automatically generated code is committed to the main branch.

Limitations

Currently this package only includes commands to communicate with the Liquid Flow Sensor using the Sensirion RS485 and USB Sensor Cable. For more information on either of the products this package is designed to work with please refer to the following links.

Usage

Installation

Install using npm or yarn.

npm install @mytosbio/kern-communications
yarn add @mytosbio/kern-communications

Working example

Include a basic example to connect with and configure a Kern balance.

// TODO: Add example of using kern-communications

Development

Please feel free to fork and modify this code. We have attempted to add some basic code quality checks to the process. When creating commits the Typescript files are built and linted to check they conform to the correct standards. If using VSCode then we highly recommend installing the prettier and eslint extensions.

For more details on how to contribute to this project please see [Contributing][contributing.md] guidelines.

Running tests

There are extensive tests to assert correct functionality. The test runner used is jest which accepts a number of arguments to watch the test files and filter tests based on filename. The following command will run all the tests for the repository.

yarn run test

Building documentation

Documentation can be built using typedoc.

yarn run typedoc

License

Please see LICENSE.

About

Node package for communicating with lab balances using the KERN Communications Protocol

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •