mirror of https://github.com/sqfmi/Watchy.git
Issue #89 Added mac address and local ip
- Displayed mac address when setting up wifi - Display local ip when wifi is connected from the setuppull/201/head
parent
7333873f08
commit
9ac9aeded9
17
README.md
17
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! :)
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue