#include #include void setup() { Serial.begin(115200); //Serial connection //WiFi.begin("iPhone", "kalender01"); //WiFi connection WiFi.begin("SU-IoT", NULL); while (WiFi.status() != WL_CONNECTED) { //Wait for the WiFI connection completion delay(500); Serial.println("Waiting for connection"); } } void loop() { if (WiFi.status() == WL_CONNECTED) { //Check WiFi connection status HTTPClient http; //Declare object of class HTTPClient http.begin(""); //Specify request destination http.addHeader("roomnum", "2020"); //Specify content-type header int httpCode = http.POST(""); //Send the request String payload = http.getString(); //Get the response payload Serial.println(httpCode); //Print HTTP return code Serial.println(payload); //Print request response payload http.end(); //Close connection } else { Serial.println("Error in WiFi connection"); } }