feat: full test ok
This commit is contained in:
parent
95aabd8903
commit
19b716aaf2
@ -8,7 +8,7 @@ Program::Program(){
|
||||
|
||||
////////API///////
|
||||
this->api = new API(USER_NAME, USER_PASSWORD, API_HOST);
|
||||
//this->api->wifiBegin(WIFI_SSID, WIFI_PASSWORD, &Serial1);
|
||||
this->api->wifiBegin(WIFI_SSID, WIFI_PASSWORD, &Serial1);
|
||||
|
||||
|
||||
//////CAPTEUR/////
|
||||
@ -23,15 +23,15 @@ void Program::loop(){
|
||||
String humitemp = this->dht->read();
|
||||
String poid = this->balance->read();
|
||||
|
||||
//this->api->sendValue(distance, TRASHCAN_ONE, this->ultrasonic->getValType(), this->ultrasonic->isFull());
|
||||
this->api->sendValue(distance, TRASHCAN_ONE, this->ultrasonic->getValType(), this->ultrasonic->isFull());
|
||||
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());
|
||||
this->api->sendValue(humitemp, TRASHCAN_TWO, this->dht->getValType(), this->dht->isFull());
|
||||
Serial.print("humiTemp = " + humitemp);
|
||||
Serial.println(this->dht->isFull()?" true":" false");
|
||||
|
||||
//this->api->sendValue(poid, TRASHCAN_TWO, this->balance->getValType(), this->balance->isFull());
|
||||
this->api->sendValue(poid, TRASHCAN_THREE, this->balance->getValType(), this->balance->isFull());
|
||||
Serial.print("poid = " + poid);
|
||||
Serial.println(this->balance->isFull()?" true":" false");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user