"connection failed"
Hello sir, I've checked and rechecked the sketch, editing and rechecking the ssl fingerprint many times. I get a "connection failed" message every time regardless of what I try. Any ideas?
First thing I would check for "connection failed" is the Wifi info:
- Can your ESP8266 connect to your wifi? i.e. does the SSID and password match the one in ESP8266_PIRv2.ino (both SSID & pwd are CaSe SensiTive!)
If Wifi is good, you should see something like: WiFi connected IP Address: 192.168.x.x and the LED blink 3 times.
Next is to verify the IFTTT settings:
-
Log into your account IFTTT and go to "My Applets" https://ifttt.com/my_applets
-
Select the "pirtrigger" and click on the "Check Now" and look for the email in your inbox. It can take 5-10 min to receive at times.
-
If that works, you can then verify the IFTTT API itself is working: Go to https://ifttt.com/services/maker_webhooks/settings and copy/paste the URL: displayed (looks like https://maker.ifttt.com/use/b8rXq5k... ) and follow the instructions to trigger the event.
-
If this is all working, then that will tell you that IFTTT is set up properly.
-
Does your IFTTT API key match the one in the ESP8266_PIRv2.ino ? (the API key is that long text string shown in step 3 above. Something like b8rXq5k... .)
NOTE: that SSL fingerprint is ONLY needed if line 58 shows bool verifyCert = true; Otherwise it is ignored.
Most likely things: wrong API key, wrong SSID/Password