wfdudley / T-watch-2020

a watch project for the TTGO T-watch-2020 version 1
BSD 3-Clause "New" or "Revised" License
84 stars 27 forks source link

Unable to connect to Wifi #33

Closed RChadwick7 closed 3 years ago

RChadwick7 commented 3 years ago

I modified the my_WiFi.h to look like this:

EXTERN WIFIAP AccessPoints[]

ifdef WIFIMAIN

= { { "Guest123", "ThisIsmypassword1", TZ_EST }, // Home { "Not Your A10", "thisismypassword2", TZ_EST }, // my phone hotspot { "work-ssid", "password4job", TZ_EST }, // my job's WiFi { "friend #1 ssid", "pass#2word", TZ_PST }, // friend one's WiFi { "2nd friend SSID", "passwo#4rd", TZ_CST }, // friend two's WiFi { "dentist-ssid", "pa#5ssword", TZ_EST }, // my dentist's WiFi { "\xE9\x93\xAD\xE5\xBE\xB7\xE7\xBE\x8E\xE5\xAE\xB6" "1-2301", "mingde2301", TZ_CHINA }, // an AirBnB in China, kept as example of non-ASCII chars { "friend 3 SSID", "passwor#6d", TZ_EST } // friend three's WiFi }

endif

Unfortunately, It never connects to wifi. If I tap on 'weather', it finds all nearby access points, including the ones I configured, but it then freezes at this screen. If I tap on 'delete wifi', I see the pre-configured AP's, but not mine. I then changed the MQTT default password to see if it changed, and it didn't. After making the changes, I saved the file, recompiled, and then uploaded. I'm guessing I'm doing something wrong, or need to somehow wipe the watch before uploading?

UPDATE: I erased the T-Watch 2020 using the Espressif tool, and reflashed. Wifi still doesn't connect, but when I go to the menu option to delete wifi, the watch displays "no wifi data file (acc_pts.txt) found!"

RChadwick7 commented 3 years ago

I removed and replaced the battery, and it's working now.

wfdudley commented 3 years ago

How do you remove the battery?

You can wipe the stored list of access points by uncommenting this line:

// deleteFile(SPIFFS, "/acc_pts.txt");

in function build_acc_pts_file() in file SPIFF_fns.cpp. uncomment it, compile and upload, and then do any wifi-thing. The file in SPIFFS will be re-created from the AccessPoints data. Make sure you re-comment it and re-compile and re-upload afterwards, or you'll never be able to store a new WiFi access point in the watch.

Bill Dudley

This email is free of malware because I run Linux.

On Thu, Feb 4, 2021 at 2:14 PM RChadwick7 notifications@github.com wrote:

Closed #33 https://github.com/wfdudley/T-watch-2020/issues/33.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wfdudley/T-watch-2020/issues/33#event-4292590436, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI4VYU3Y3ISNB74UK6H5HU3S5LWYFANCNFSM4XDIYUCA .

RChadwick7 commented 3 years ago

Thanks for the response, and a very interesting project. As for the battery, at least on mine, I remove the black back, then lift the battery out from one side. I actually found and bought a second battery on Ebay.