|
...
|
...
|
@@ -21,7 +21,7 @@ char mqttTEMP[23];
|
|
21
|
21
|
char mqttLWT[22];
|
|
22
|
22
|
|
|
23
|
23
|
const String model = "NodeMCU Dallas";
|
|
24
|
|
-const String ver = "v2.1.0";
|
|
|
24
|
+const String ver = "v2.1.1";
|
|
25
|
25
|
const char* mqttServer = "mqtt.clickhome.ro";
|
|
26
|
26
|
const int mqttPort = 1883;
|
|
27
|
27
|
long loopTimer = 900000; // miliseconds - by default trimite la 15 minute
|
|
...
|
...
|
@@ -31,7 +31,7 @@ int inPin = 5;
|
|
31
|
31
|
String mqttMessage;
|
|
32
|
32
|
|
|
33
|
33
|
// senzor de temperatura DALLAS
|
|
34
|
|
-#define ONE_WIRE_BUS D4 // pinul de date (la mine am pus senzor pe D4)
|
|
|
34
|
+#define ONE_WIRE_BUS D1 // pinul de date care se conecteaza la dallas
|
|
35
|
35
|
OneWire oneWire(ONE_WIRE_BUS);
|
|
36
|
36
|
DallasTemperature sensors(&oneWire);
|
|
37
|
37
|
|