correct pin and unsigned long time with ZsensorDHT

#48
This commit is contained in:
1technophile committed 2017-05-19 20:15:25 +02:00
1 parent 3b2b740f29
commit 2ea2576d8d
2 files changed
+15 -11

No files matched your search

+3 -3
View File
@@ -33,7 +33,7 @@ Thanks to wolass https://github.com/wolass for suggesting me HM 10 and dinosd ht
SoftwareSerial softserial(BT_RX, BT_TX);
unsigned long time1 = 0;
unsigned long timebt = 0;
void setupBT() {
softserial.begin(9600);
@@ -79,8 +79,8 @@ boolean BTtoMQTT() {
trc(F("Connection OK to HM-10"));
}
}
if (millis() > (time1 + TimeBtw_Read)) {//retriving value of adresses and rssi
time1 = millis();
if (millis() > (timebt + TimeBtw_Read)) {//retriving value of adresses and rssi
timebt = millis();
softserial.print(F(QUESTION_MSG));
}
return false;