1.2.0 • Published 3 years ago
tpl-controller v1.2.0
tpl-controller
Installing
Using npm:
$ npm install tpl-controllerOnce 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, togglerestart
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.