Skip to content
This repository has been archived by the owner on Apr 2, 2022. It is now read-only.

SmolSoftBoi/node-tp-link-powerline

Repository files navigation

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();