node-tp-link-powerline

API to interact with TP-Link powerline devices.

Usage no npm install needed!

<script type="module">
  import nodeTpLinkPowerline from 'https://cdn.skypack.dev/node-tp-link-powerline';
</script>

README

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