Skip to content

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

License

Notifications You must be signed in to change notification settings

jn-se/e3dc-modbus

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published