Repository navigation
Network
English · Русский
OTGateway connects to your local network over Wi-Fi or Ethernet. You can choose the connection method and configure it under Network settings in the web interface. The web interface, REST API and MQTT are available over either connection.
After the first installation, the web interface is available at http://192.168.4.1 through the ESP32 access point. Network settings → Wi-Fi → WiFi settings lets you select your home network from the scan results or enter its SSID and password. A Channel value of 0 enables automatic selection. Saving the settings starts the connection process.
Once connected, the web interface is available at the address assigned by your router. Its main page shows the active connection, IP address and, for Wi-Fi, SSID and signal strength.
The ESP32 starts its access point when no Wi-Fi SSID is configured. If a configured Wi-Fi connection remains unavailable, the access point starts after about 3 minutes. Wi-Fi connection attempts continue while the access point is running.
The network settings are available at http://192.168.4.1 through this access point. Its SSID, password and channel can be changed under AP settings. Changed access point parameters take effect the next time the access point starts.
After the home-network connection has been available for 15 seconds, OTGateway stops the access point once no clients remain connected to it. Saving Wi-Fi connection settings keeps a running access point available during reconnection.
Note
Bluetooth scanning pauses while a client is connected to the ESP32 access point. It resumes automatically after the last client disconnects or the access point stops. Bluetooth sensor readings may therefore stop updating while you configure the device through its access point.
Ethernet is available in s3_mini and esp32_c6_ethernet. The C6 Ethernet build has no Bluetooth support; the standard esp32_c6 build supports Bluetooth but has no Ethernet. The board table lists the available builds.
In builds without Ethernet support, the Ethernet settings and connection option are hidden.
Ethernet requires a W5500 SPI module. Its power and ground connections must follow the module and ESP32 board documentation. All 6 signals below require suitable free GPIOs. The firmware has no default W5500 GPIO assignments. GPIOs already used by OpenTherm, sensors or other configured functions are unavailable for the module.
| W5500 signal | Network settings field | ESP32 direction |
|---|---|---|
| SCK / CLK | SPI clock GPIO | Output |
| MOSI | SPI MOSI GPIO | Output |
| MISO | SPI MISO GPIO | Input |
| CS / SCS | SPI CS GPIO | Output |
| INT / IRQ | Interrupt GPIO | Input |
| RST / RESET | Reset GPIO | Output |
- While still connected through Wi-Fi, open Network settings → Ethernet. Enter and save all 6 GPIOs matching your wiring. IRQ and reset are required too.
- Connect the W5500 to your router or switch with an Ethernet cable.
- Under Network settings, choose DHCP or enter the static address settings described below. Select Connection method → Ethernet and save.
- Allow about 5 seconds for reconnection, then open the address assigned to the Ethernet interface. Check the router's client list if needed.
- On the web interface's main page, check that Connection is Ethernet. Wi-Fi SSID and signal rows are hidden in this mode.
Only one connection method is selected at a time. Ethernet mode turns off Wi-Fi, including the ESP32 access point, and disables Wi-Fi network scanning.
If Ethernet cannot start because the build lacks support, the GPIO configuration is incomplete or the driver fails to initialize, OTGateway switches to Wi-Fi using the saved Wi-Fi settings. After correcting the wiring or GPIO assignments, selecting Ethernet again starts another attempt.
Important
An unplugged cable, a router restart or a failure to obtain an IP address does not trigger a switch to Wi-Fi. Ethernet remains selected and the access point stays off. Restoring access requires a working wired connection with correct DHCP or static IP settings.
Use DHCP is enabled by default. With DHCP disabled, IP, Gateway, Subnet and DNS define the static address settings for your local network. These settings are shared by Wi-Fi and Ethernet, so switching between networks may require changes.
Saving changed network settings schedules reconnection after about 5 seconds. The old browser address can stop responding if the connection method or IP address changes. After reconnection, the web interface is available at the new address.
An access point provides local setup access; it does not count as a connection to your home network for MQTT or network-fed sensors. Network parameters can be changed under Network settings in the web interface. The REST reference describes network settings and status for your own applications.