DatanoiseTV / esp-find3-client

3rd Party Indoor Location using ESP8266/ESP32 and Find3 (https://github.com/schollz/find3)
GNU General Public License v3.0
129 stars 37 forks source link

Soft reset and no connection to host #7

Closed luotope closed 6 years ago

luotope commented 6 years ago

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

luotope commented 6 years ago

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.