Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
36ecc3a
build: switch to yarn
Jun 2, 2022
b856b1b
build: add typescript
Jun 2, 2022
2e292ed
convert json consts to js, and add type defs for them
Jun 2, 2022
825e845
Merge branch 'typed-constants' into develop
Jun 2, 2022
0f134e6
add subscription error codes to mid groups
May 27, 2022
219b22a
Merge branch 'subscribe-err-codes' into develop
Jun 2, 2022
c93856c
fix: property destroy streams when an error occurs
Jun 29, 2022
24d4fd7
fix: error handling when un/subscribe not supported
Oct 18, 2022
2191378
fix: missing keys in mid0002 parser
Mar 24, 2023
d9b2f30
fix: wrong type for stationID
Mar 24, 2023
f9fcd74
ci: add github ci actions to build and test
ferm10n Mar 27, 2023
de17d19
ci: add node typedefs and job timeout
Mar 28, 2023
eeb838d
Merge pull request #3 from RV-Argonaut/add-github-ci
ferm10n Mar 28, 2023
18b7655
Merge pull request #1 from RV-Argonaut/fix-destroy
ferm10n Mar 28, 2023
6c64d0f
test: potentially wrong payload
Mar 24, 2023
3a5c96e
Merge pull request #4 from RV-Argonaut/40-fix-mid0002-parser-missing-…
ferm10n Mar 28, 2023
463f20a
refactor: more consice way to do callbackWrite on the next tick
Mar 28, 2023
7bb97f6
fix: link layer destroy calls callback
Mar 29, 2023
d4f76c9
chore: add notes about the redviking fork and bump version
Mar 28, 2023
4433476
Merge pull request #6 from RV-Argonaut/subscribe-err-codes
ferm10n Mar 29, 2023
d762f9a
Merge pull request #8 from RV-Argonaut/fix-destroy
ferm10n Mar 30, 2023
3c8e3eb
test: open protocol parser input is not a buffer
Mar 30, 2023
a565436
Merge pull request #7 from RV-Argonaut/rv-stuff
ferm10n Mar 30, 2023
ff584dd
Merge pull request #9 from RV-Argonaut/fix-op-parser-test
ferm10n Mar 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
- push
- pull_request

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10

strategy:
matrix:
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn --immutable
- run: yarn build
- run: yarn test
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,11 @@ docs/jsdoc
# Visual Studio Code config folder
.vscode

.idea
.idea

.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
786 changes: 786 additions & 0 deletions .yarn/releases/yarn-3.2.1.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yarnPath: .yarn/releases/yarn-3.2.1.cjs
nodeLinker: node-modules
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,21 @@ This node was created by [Smart-Tech](https://netsmarttech.com) as part of the [

Documentation: [Open Protocol R 2.8.0](docs/OpenProtocolSpecification_R280.pdf)

## ⚠ RedViking Fork

This fork adds fixes and enhancements to the source project which have been made by RedViking's Argonaut team. The upstream project appears to be unmaintained. If the upstream ends up reviewing and merging the changes provided in this fork, then this fork would become unnecessary. Until that happens, our planned process for transparency is making changes to the project and keeping the ability to merge upstream viable:

- create an `upstream-master` branch to match the upstream project's master branch
- changes from RedViking will be implemented on feature branches in this project
- changes we'd like merged upstream will be based off the `upstream-master` branch
- other changes will just base off of our `develop` branch, we'll ignore how we handle those in this outline
- for changes we'd like merged upstream, we will create an issue/PR on the upstream project, to merge into its `develop` branch
- create our own PR in this fork project, but reference it in the upstream project's issue/PR so other devs on github will see the implemented fix
- we have a mirror for this repo on gitlab, which will keep our internal repo in sync with the public one
- to keep things simple for us in the short term, our internal gitlab CI will publish the package to our package registry. If there's public interest in our fork, we could explore transitioning to publishing to npm instead

> note: This plan should be considered as guidelines more than anything. We are open to discussions on how we might change it.

## What is Open Protocol?

Open Protocol is an interface for building applications for remote control or data subscription of industrial tightening
Expand Down
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ const MIDSerializer = require("./src/MIDSerializer.js");
const helpers = require("./src/helpers.js");
const SessionControlClient = require("./src/sessionControlClient.js");

const midGroups = require("./src/midGroups.json");
const midCommand = require("./src/midCommand.json");
const midrequest = require("./src/midRequest.json");
const midGroups = require("./src/midGroups");
const midCommand = require("./src/midCommand");
const midrequest = require("./src/midRequest");

const net = require("net");

Expand Down Expand Up @@ -68,4 +68,4 @@ module.exports = {
MIDSerializer,
helpers,
createClient
};
};
Loading