==== Synchronous Mode: ==== #include #include #include String serverName = "http://192.168.1.106/update-sensor"; void setup(){ // ** wifi connection here ** // if(WiFi.status()== WL_CONNECTED){ WiFiClient client; HTTPClient http; String serverPath = serverName + "?temperature=24.37"; http.begin(client, serverPath.c_str()); int httpResponseCode = http.GET(); if (httpResponseCode>0) { Serial.print("HTTP Response code: "); Serial.println(httpResponseCode); String payload = http.getString(); Serial.println(payload); } else { Serial.print("Error code: "); Serial.println(httpResponseCode); } // Free resources http.end(); } }