no matching function for call to 'HTTPSRedirect::printRedir(String&, const char*

Hello guys,
Please i need your guide to resolve an error encountered while trying to upload a sketch to my esp8266. Its a sketch to send temperature (ds18b20) value to google sheet. Each time i tried i kept getting this error

“no matching function for call to ‘HTTPSRedirect::printRedir(String&, const char*&, const char*&)’”

This is the entire sketch below, please how do i resolve this? help me.

#include <HTTPSRedirect.h>
#include <ESP8266WiFi.h>
#include <OneWire.h>
#include <DallasTemperature.h>

#define ONE_WIRE_BUS 2 // Data wire is plugged into port 2 on the Arduino

OneWire oneWire(ONE_WIRE_BUS); // Setup a oneWire instance to communicate with any OneWire devices

DallasTemperature sensors(&oneWire); // Pass oneWire reference to Dallas Temperature.

const char* ssid = “Daddy4u”;
const char* password = “@Jpeg4u”;

// The ID below comes from Google Sheets. See how to get it here: http://embedded-lab.com/blog/post-data-google-sheets-using-esp8266

const char *GScriptId = “AKfycbz2uaxPooiszm0ErerNMfSRpVFuQ-6RJA4VfreYTICwvCeEt9xc”;

// Push data at this interval
const int deepSleep = 10000000;

const char* host = “script.google.com”;
const char* googleRedirHost = “script.googleusercontent.com”;

const int httpsPort = 443;
HTTPSRedirect client(httpsPort);

// Prepare the url (without the varying data)
String url = String("/macros/s/") + GScriptId + “/exec?”;

const char* fingerprint = “F0 5C 74 77 3F 6B 25 D7 3B 66 4D 43 2F 7E BC 5B E9 28 86 AD”;

void setup() {
sensors.begin();
Serial.begin(115200);

Serial.println("Connecting to wifi: ");
Serial.println(ssid);
Serial.flush();

WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println(" IP address: ");
Serial.println(WiFi.localIP());

Serial.print(String("Connecting to "));
Serial.println(host);

bool flag = false;
for (int i=0; i<5; i++){
int retval = client.connect(host, httpsPort);
if (retval == 1) {
flag = true;
break;
}
else
Serial.println(“Connection failed. Retrying…”);
}

// Connection Status, 1 = Connected, 0 is not.
Serial.println("Connection Status: " + String(client.connected()));
Serial.flush();

if (!flag){
Serial.print("Could not connect to server: ");
Serial.println(host);
Serial.println(“Exiting…”);
Serial.flush();
return;
}

// Data will still be pushed even certification don’t match.
if (client.verify(fingerprint, host)) {
Serial.println(“Certificate match.”);
} else {
Serial.println(“Certificate mis-match”);
}
}

// This is the main method where data gets pushed to the Google sheet
void postData(String tag, float value){
if (!client.connected()){
Serial.println(“Connecting to client again…”);
client.connect(host, httpsPort);
}
String urlFinal = url + “tag=” + tag + “&value=” + String(value);
client.printRedir(urlFinal, host, googleRedirHost);
}

// Continue pushing data at a given interval
void loop() {

//Read the temperature from DS18B20
sensors.requestTemperatures();
float h = (sensors.getTempCByIndex(0));
float t = (DallasTemperature::toFahrenheit(h));

// Post this information to Google Sheet
postData(“Temperature”, h);

ESP.deepSleep(deepSleep); // Go back to sleep

//delay (deepSleep);
}

client.printRedir() does not take any arguments. You probably want the POST method to actually there.
See the example that came with the library: https://github.com/electronicsguy/ESP8266/blob/master/HTTPSRedirect/GoogleDocs.ino

blh64:
client.printRedir() does not take any arguments.

It does in This Version. OP, guess you should confirm which version needs to be installed.

Thanks for the info...

gfvalvo:
It does in This Version. OP, guess you should confirm which version needs to be installed.

Good to know...