removed relative path;

MQTT port & toppic fixed;
This commit is contained in:
Dobromir Popov
2021-05-01 01:54:51 +03:00
parent 7740770ace
commit 643c6c6b5f
9 changed files with 37 additions and 36 deletions

3
dht.js
View File

@@ -201,7 +201,7 @@ wss.on('connection', ws => {
var mosca = require('mosca');
var mqtt_settings = {
port:1884,
port:1883,
secure : {
port: 8444,
keyPath: SECURE_KEY,
@@ -230,6 +230,7 @@ mqtt_client.on('connect', function () {
// mqtt_client.subscribe('dht');
// mqtt_client.subscribe('ir');
// ESP_Easy_0 = garden
mqtt_client.subscribe('Garden/+');
mqtt_client.subscribe('Garden/+/+');
mqtt_client.publish('tasmota', 'controller connected');