changed variable names for coding conventions
This commit is contained in:
@@ -8,15 +8,15 @@ void setup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
float hoomid = dht11.readHumidity();
|
float humidity = dht11.readHumidity();
|
||||||
float temp = dht11.readTemperature();
|
float temperature = dht11.readTemperature();
|
||||||
|
|
||||||
|
|
||||||
Serial.print("temparatuur celcius: ");
|
Serial.print("temparatuur celcius: ");
|
||||||
Serial.println(temp);
|
Serial.println(temperature);
|
||||||
|
|
||||||
Serial.print("vochtigheid: ");
|
Serial.print("vochtigheid: ");
|
||||||
Serial.println(hoomid);
|
Serial.println(humidity);
|
||||||
|
|
||||||
delay(2000);
|
delay(2000);
|
||||||
}
|
}
|
@@ -26,7 +26,7 @@ void setup() {
|
|||||||
pinMode(6, OUTPUT);
|
pinMode(6, OUTPUT);
|
||||||
digitalWrite(6, HIGH);
|
digitalWrite(6, HIGH);
|
||||||
|
|
||||||
|
//print het hardware ID van de esp32S3
|
||||||
Serial.print("mac adress:");
|
Serial.print("mac adress:");
|
||||||
Serial.println(WiFi.macAddress());
|
Serial.println(WiFi.macAddress());
|
||||||
//verbinden met wifi
|
//verbinden met wifi
|
||||||
@@ -41,6 +41,7 @@ void setup() {
|
|||||||
|
|
||||||
//gebruikt deze website om posts requests naar toe te sturen
|
//gebruikt deze website om posts requests naar toe te sturen
|
||||||
http.begin("http://hva-onto.nl/api/ti/map/measurements/add?api-key=efffc47610ea6282a3416f71b51b3a");
|
http.begin("http://hva-onto.nl/api/ti/map/measurements/add?api-key=efffc47610ea6282a3416f71b51b3a");
|
||||||
|
//lampje aan om aan te geven dat esp32S3 is verbonden met internet
|
||||||
digitalWrite(4, HIGH);
|
digitalWrite(4, HIGH);
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user