tpl-controller

1.2.0 • Public • Published

tpl-controller

npm npm License

Installing

Using npm:

$ npm install tpl-controller

Once the package is installed, you can import the controller:

import TplController from 'tpl-controller';

Usage

Create instance of controller class:

const tplController = new TplController({ ipAddress, password });

Commands

turnLed

const { state } = await tplController.turnLed('toggle'); // on, off, toggle

restart

const { state } = await tplController.restart();

See example.mjs to get an insight.

Compatibility

  • TL-WA850RE 7.0
    • 1.0.1 Build 201029
    • 1.0.10 Build 211117

License

This project is licensed under MIT.

/tpl-controller/

    Package Sidebar

    Install

    npm i tpl-controller

    Weekly Downloads

    1

    Version

    1.2.0

    License

    MIT

    Unpacked Size

    17.9 kB

    Total Files

    6

    Last publish

    Collaborators

    • aoephtua