1.0.2 • Published 3 years ago

@nanomatic/pzem-004t v1.0.2

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

Status


📝 Table of Contents

🏁 Getting Started

Installing

npm i @nanomatic/pzem-004t

Using

Example code below:

import { PZEM004T } from '@nanomatic/pzem-004t'

const pzem004t = new PZEM004T({ port: '/dev/ttyUSB1' });

setInterval(async() => {
    try {
        const data = await pzem004t.getData();
        console.log(data);
    } catch ({ message }) {
        console.log(`Error: ${message}`);
    }
}, 500);

⛏️ Built With

📦 Dependencies

✍️ Authors

🎉 Acknowledgments

  • Special thanks for Sebastian for working together and giving ideas 😉