Page 1 of 1

ESP32 To NEST GET Request unable to connect?

Posted: Mon Mar 19, 2018 12:42 am
by siberian
You will have to excuse my inexperience. I am working to get a REST GET from an emulated NEST. I am able to get the desired GET response when using postman per the NEST developers tutorial. However, when I attempt to utilize the GET request from a ESP32 I am unable to connect. More precisely the HTTPSecureClient on the ESP32 is not able to connect to the following section always returns -11 or (not connected):

if (!client.connect(temp, 443))
Serial.println(“Connection failed!”);
else {
Serial.println(“Connected to server!”);
}

I am able to get the sample code to work, as well as other GET services to work on the esp32, but not the NEST. (also, i’ve tried a number of different host configurations i.e. https://developer-api.nest.com, developer-api.nest.com, 52.87.123.90, etc with no luck).
Again I am very new to this so any detailed help would be greatly appreciated.
esp32_REST_attempt.txt
See note labeled: NOTE THIS IS WHERE I ALWAYS GET STUCK WHEN ATTEMPTING A NEST GET
(4.03 KiB) Downloaded 881 times