@apio/encoding
v3.0.8
Published
A library for encode/decode data received from :protocol-service
Downloads
25
Readme
@apio/encoding
A library for encode/decode data received from :protocol-service
.
Installation
npm install @apio/encoding
Usage
const { getEncoder } = require('@apio/encoding')
const encode = getEncoder('SenecaZE-4DI')
// base64 received from modbus-service
const data = 'AAAIAgIAAAAACQICAAA='
const encoded = encode(data)
// [ { name: "register_8", value: 0 }, { name: "register_9", value: 0 } ]
Todo
- Fix encoders in
todo/encoders
- Uniform Seneca encoders