Hi and thanks for the nice project. I hope I can use it in my sports tracking solution.
I used this code as such in Wemos esp8266, only replaced my SSID and PW. The serial monitor shows soft wdt reset and I located the problem in the following where I added yield() and it fixed the problem:
while (client.available() == 0) { yield(); if (millis() - timeout > 2500) { ...
However, with or without this yield the connection to host fails even before here:
WiFiClientSecure client; const int httpsPort = 443; if (!client.connect(host, httpsPort)) { Serial.println("connection failed"); }
What could be the reason for failing?
Any idea why it cannot make the connection to the host "cloud.internalpositioning.com"?
Output from serial monitor:
Find3 ESP client by DatanoiseTV (WiFi support WITHOUT BLE.)
[ INFO ] ChipID is: 14318257
[ INFO ] Connecting to WiFi..
[ INFO ] WiFi scan starting..
[ INFO ] WiFi Scan finished.
[ INFO ] -1 WiFi networks found.
[ INFO ] BLE scan skipped (BLE disabled)..
connection failed
[ INFO ] Requesting URL: /data
[ ERROR ] HTTP Client Timeout !
[ INFO ] WiFi scan starting..
[ INFO ] WiFi Scan finished.
[ INFO ] 3 WiFi networks found.
[ INFO ] BLE scan skipped (BLE disabled)..
connection failed
Not sure what was the reason but now it works. I just uploaded another https test program which worked fine and then reinstalling this which started to work nice.
Hi and thanks for the nice project. I hope I can use it in my sports tracking solution.
I used this code as such in Wemos esp8266, only replaced my SSID and PW. The serial monitor shows soft wdt reset and I located the problem in the following where I added yield() and it fixed the problem:
while (client.available() == 0) { yield(); if (millis() - timeout > 2500) { ...
However, with or without this yield the connection to host fails even before here:
WiFiClientSecure client; const int httpsPort = 443; if (!client.connect(host, httpsPort)) { Serial.println("connection failed"); }
What could be the reason for failing? Any idea why it cannot make the connection to the host "cloud.internalpositioning.com"?
Output from serial monitor: Find3 ESP client by DatanoiseTV (WiFi support WITHOUT BLE.) [ INFO ] ChipID is: 14318257 [ INFO ] Connecting to WiFi.. [ INFO ] WiFi scan starting.. [ INFO ] WiFi Scan finished. [ INFO ] -1 WiFi networks found. [ INFO ] BLE scan skipped (BLE disabled).. connection failed [ INFO ] Requesting URL: /data [ ERROR ] HTTP Client Timeout ! [ INFO ] WiFi scan starting.. [ INFO ] WiFi Scan finished. [ INFO ] 3 WiFi networks found. [ INFO ] BLE scan skipped (BLE disabled).. connection failed
Thanks again. Petri