SONOFF TASMOTA MQTT CLIENT
Easy client for sonoff switch with tasmota firmware through MQTT protocol.
Install
npm isntall sonoff-tasmota-mqtt-client
Use
let Sonoff = ; let sonoff = host:'mqtt://localhost'/*ip or host of mqtt broker*/ port: 1234/*port*/ username:'username' password:'pasword' name: 'sonoff'/*name of device*/; sonoff; sonoff; sonoff;