From 9ac9aeded9d149e5171f6dabcffd2f35fa925c5d Mon Sep 17 00:00:00 2001 From: Sukhpal Singh Date: Wed, 28 Dec 2022 00:54:15 +1000 Subject: [PATCH 1/2] Issue #89 Added mac address and local ip - Displayed mac address when setting up wifi - Display local ip when wifi is connected from the setup --- README.md | 17 +++++++++++++++++ src/Watchy.cpp | 4 ++++ 2 files changed, 21 insertions(+) diff --git a/README.md b/README.md index ccaa9da3..ad1deb97 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,23 @@ Visit [**https://watchy.sqfmi.com**](https://watchy.sqfmi.com) for documentation You may also have to install the [CP2104 USB to Serial drivers](https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers) if the port is not automatically detected. +## User Manual + +### Wifi Setup + +1. Click 'Setup Wifi' from main menu on the watch. +2. Connect to 'Watchy Ap' wifi from another device such as phone or computer / laptop. +3. Open 192.168.4.1 in the browser. On iphone this page open itself when connecting to wifi. +4. Click 'Configure WiFi' +5. Enter SSID and password. (Note: SSID can be prefilled by listed networks on the top of this screen) +6. Hit 'Save' button and wait for Watchy. +7. If connection failed, the watchy will display 'Setup failed & timed out!', otherwise it will display the local ip address and SSID of the connected network with confirmation. + +#### Troubleshoot Wifi Setup: +1. Click 'Info' from 192.168.4.1 page. +2. Check your router setting to make sure the listed mac address is allowed. +3. If above didn't fix, then try clicking 'Erase Wifi Config' from 'Info' page and wait for Watchy to restart itself. Once it happen, try the wifi setup again and it should hopefully work. + ### Have Fun! :) diff --git a/src/Watchy.cpp b/src/Watchy.cpp index 778b9e2d..c6437a95 100644 --- a/src/Watchy.cpp +++ b/src/Watchy.cpp @@ -784,6 +784,8 @@ void Watchy::setupWifi() { } else { display.println("Connected to"); display.println(WiFi.SSID()); + display.println("Local IP:"); + display.println(WiFi.localIP()); } display.display(false); // full refresh // turn off radios @@ -805,6 +807,8 @@ void Watchy::_configModeCallback(WiFiManager *myWiFiManager) { display.println(WIFI_AP_SSID); display.print("IP: "); display.println(WiFi.softAPIP()); + display.println("MAC address:"); + display.println(WiFi.softAPmacAddress().c_str()); display.display(false); // full refresh } From 3a7eff4a8eb00f4276eff4d49da09c231598e76b Mon Sep 17 00:00:00 2001 From: Sukhpal Singh Date: Fri, 30 Dec 2022 14:23:32 +1000 Subject: [PATCH 2/2] Remove wifi setup guide from readme --- README.md | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/README.md b/README.md index ad1deb97..ccaa9da3 100644 --- a/README.md +++ b/README.md @@ -21,23 +21,6 @@ Visit [**https://watchy.sqfmi.com**](https://watchy.sqfmi.com) for documentation You may also have to install the [CP2104 USB to Serial drivers](https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers) if the port is not automatically detected. -## User Manual - -### Wifi Setup - -1. Click 'Setup Wifi' from main menu on the watch. -2. Connect to 'Watchy Ap' wifi from another device such as phone or computer / laptop. -3. Open 192.168.4.1 in the browser. On iphone this page open itself when connecting to wifi. -4. Click 'Configure WiFi' -5. Enter SSID and password. (Note: SSID can be prefilled by listed networks on the top of this screen) -6. Hit 'Save' button and wait for Watchy. -7. If connection failed, the watchy will display 'Setup failed & timed out!', otherwise it will display the local ip address and SSID of the connected network with confirmation. - -#### Troubleshoot Wifi Setup: -1. Click 'Info' from 192.168.4.1 page. -2. Check your router setting to make sure the listed mac address is allowed. -3. If above didn't fix, then try clicking 'Erase Wifi Config' from 'Info' page and wait for Watchy to restart itself. Once it happen, try the wifi setup again and it should hopefully work. - ### Have Fun! :)