Compare commits
2 Commits
29e1c1b73a
...
ef447b2dc7
Author | SHA1 | Date | |
---|---|---|---|
ef447b2dc7 | |||
830d40a777 |
@ -119,6 +119,5 @@ bool API::sendValue(String val, String poubelleID, String valUnit, bool full){
|
|||||||
this->client->println("Connection: close");
|
this->client->println("Connection: close");
|
||||||
this->client->println();
|
this->client->println();
|
||||||
|
|
||||||
this->token = "";//XXX: on rm le token a chaque fois car on sais pas si la requet a bien aboutie et donc si il y est encore bon
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
@ -33,15 +33,14 @@ void Program::loop(){
|
|||||||
this->screen->printVal(distance, poid, humitemp);
|
this->screen->printVal(distance, poid, humitemp);
|
||||||
|
|
||||||
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");
|
Serial.println(this->ultrasonic->isFull()?" true":" false");
|
||||||
|
|
||||||
|
Serial.println("humiTemp = " + humitemp);
|
||||||
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");
|
Serial.println(this->dht->isFull()?" true":" false");
|
||||||
|
|
||||||
|
Serial.println("poid = " + poid);
|
||||||
this->api->sendValue(poid, TRASHCAN_THREE, 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");
|
Serial.println(this->balance->isFull()?" true":" false");
|
||||||
|
|
||||||
Serial.println();
|
Serial.println();
|
||||||
|
10
README.md
10
README.md
@ -1,12 +1,10 @@
|
|||||||
# Depot IOT VR
|
# Depot IOT VR
|
||||||
|
|
||||||
Lien du Gitea : (depot principale + gestion de projet)
|
Lien du Gitea : (depot principale + gestion de projet)
|
||||||
https://gitea.cb85.software/Epitech-T-DEV-811/T-DEV-811
|
https://git.lab-ouest.org/Epitech-T-DEV-811/T-DEV-811
|
||||||
|
|
||||||
|
|
||||||
Lien de la CAO : https://cad.onshape.com/documents/d370ee863400195afb23d026/w/1a94981b6a6f71d70b075e30/e/d0feb75fc5a122c54598349b?renderMode=0&uiState=6422993bab4d903a51186392
|
Lien de la CAO : https://cad.onshape.com/documents/d370ee863400195afb23d026/w/1a94981b6a6f71d70b075e30/e/d0feb75fc5a122c54598349b?renderMode=0&uiState=6422993bab4d903a51186392
|
||||||
|
|
||||||
|
|
||||||
### Mobile/Unity
|
### Mobile/Unity
|
||||||
|
|
||||||
Pour gérer l'AR, nous avons décider d'utiliser Unity et pour résoudre le souci de multi target en AR, nous avons utilisé Vuforia.
|
Pour gérer l'AR, nous avons décider d'utiliser Unity et pour résoudre le souci de multi target en AR, nous avons utilisé Vuforia.
|
||||||
@ -21,7 +19,7 @@ coté IoT, les valeurs de chaque capteurs sont envoyé à l'API puis ensuite, l'
|
|||||||
le champ 'unit' dans la collection trash correspond au type de capteur que l'IoT va envoyer a l'api. Le mapping suivant a été conventionner:
|
le champ 'unit' dans la collection trash correspond au type de capteur que l'IoT va envoyer a l'api. Le mapping suivant a été conventionner:
|
||||||
|
|
||||||
| Capteur | Unit | Valeur |
|
| Capteur | Unit | Valeur |
|
||||||
|----------------------|:----:|--------------------------------------|
|
| -------------------- |:----:| ------------------------------------ |
|
||||||
| Temperature/Humidité | T/H | 10.0;50 (10 degré et 50% d'humidité) |
|
| Temperature/Humidité | T/H | 10.0;50 (10 degré et 50% d'humidité) |
|
||||||
| Poids | W | 200 (200 gram) |
|
| Poids | W | 200 (200 gram) |
|
||||||
| Distance | D | 40 (40 cm) |
|
| Distance | D | 40 (40 cm) |
|
Loading…
x
Reference in New Issue
Block a user