0.1.1 • Published 1 year ago

@jn-se/e3dc-modbus v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

0.1.1

1 year ago

0.1.0

1 year ago