Skip to content

Commit

Permalink
Issue #89 Added mac address and local ip
Browse files Browse the repository at this point in the history
- Displayed mac address when setting up wifi
- Display local ip when wifi is connected from the setup
  • Loading branch information
sukhpalhub committed Dec 27, 2022
1 parent 7333873 commit 9ac9aed
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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! :)


4 changes: 4 additions & 0 deletions src/Watchy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

Expand Down

0 comments on commit 9ac9aed

Please sign in to comment.