1.0.0 • Published 3 years ago

node-tp-link-powerline v1.0.0

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

TP-Link Powerline

This is an API and can be used to interact with TP-Link powerline devices.

TP-Link PLC

import { TpPlc } from 'node-tp-link-powerline';

const tpPlc = new TpPlc();

tpPlc.on('found', (device) => {
    try {
        device.ping();

        // Ping Resolved
    } catch (error) {
        // Ping Rejected
    }
});

tpPlc.getDevices();