feat : gestion Capteur DJT (a tester)
This commit is contained in:
@ -19,15 +19,15 @@ Program::Program(){
|
||||
|
||||
void Program::loop(){
|
||||
String distance = this->ultrasonic->read();
|
||||
|
||||
//TODO: envoyer les infos des capteur par la suite
|
||||
|
||||
Serial.println("humiTemp = " + this->dht->read());
|
||||
String humitemp = this->dht->read();
|
||||
|
||||
//this->api->sendValue(distance, TRASHCAN_ONE, this->ultrasonic->getValType(), this->ultrasonic->isFull());
|
||||
Serial.print("Distance in CM: ");
|
||||
Serial.print(distance);
|
||||
Serial.print("Distance in CM = " + distance);
|
||||
Serial.println(this->ultrasonic->isFull()?" true":" false");
|
||||
|
||||
//this->api->sendValue(humitemp, TRASHCAN_TWO, this->dht->getValType(), this->dht->isFull());
|
||||
Serial.print("humiTemp = " + this->dht->read());
|
||||
Serial.println(this->dht->isFull()?" true":" false");
|
||||
|
||||
delay(1000);
|
||||
}
|
Reference in New Issue
Block a user