@jn-se/e3dc-modbus
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

e3dc-modbus

A lightweight Node.js library to connect to E3DC devices using the Modbus protocol.

Installation

Install the module e3dc-modbus via npm:

npm install @jn-se/e3dc-modbus

Example

const e3dc = require('@jn-se/e3dc-modbus')

let ipAddress = "192.168.10.104"
let connectionOptions = {port: 502}
let readInterval = 1000

e3dc.connect(ipAddress, connectionOptions).then((connection) => {
    
    connection.read(readInterval, (data) => {

        console.log("E3DC Data: "+JSON.stringify(data, null, 2))
        
    })
})
.catch(error => {

    // Error while connecting
    console.log(error.message)
})

External Documentation

Modbus/ TCP-Schnittstelle der HagerEnergy GmbH V2.0

/@jn-se/e3dc-modbus/

    Package Sidebar

    Install

    npm i @jn-se/e3dc-modbus

    Weekly Downloads

    1

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    18.9 kB

    Total Files

    11

    Last publish

    Collaborators

    • jn-se