put default IP address outside of M-Labs DHCP range

This commit is contained in:
2026-01-07 14:53:01 +08:00
parent a65500d1d3
commit a3a57d57e1
6 changed files with 8 additions and 8 deletions

View File

@@ -23,7 +23,7 @@ async def device_cfg(kirdy: Kirdy):
# Network Settings will be updated on next reboot.
await kirdy.device.set_ip_settings(
addr="192.168.1.128",
addr="192.168.1.28",
port=1550,
prefix_len=24,
gateway="192.168.1.1"
@@ -115,7 +115,7 @@ async def ld_thermostat_cfg(kirdy: Kirdy):
async def main():
kirdy = Kirdy()
kirdy.start_session(host='192.168.1.128', port=1550)
kirdy.start_session(host='192.168.1.28', port=1550)
await kirdy.wait_until_connected()
await ld_thermostat_cfg(kirdy)

View File

@@ -294,7 +294,7 @@ class Device:
self._cmd = CmdList.device
self._send_cmd = send_cmd_handler
async def set_ip_settings(self, addr="192.168.1.128", port=1550, prefix_len=24, gateway="192.168.1.1"):
async def set_ip_settings(self, addr="192.168.1.28", port=1550, prefix_len=24, gateway="192.168.1.1"):
"""
Upon command execution, the ip settings are saved into flash and are effective upon next reboot.
"""
@@ -910,7 +910,7 @@ class Kirdy:
"""
self._warning_msg_sig = sig
def start_session(self, host='192.168.1.128', port=1550):
def start_session(self, host='192.168.1.28', port=1550):
"""
Start Kirdy Connection Session.
In case of disconnection, all the queued tasks are cleared and the handler task retries TCP connection indefinitely.

View File

@@ -515,7 +515,7 @@ class QuestionMessageBox(QtWidgets.QMessageBox):
class MainWindow(QtWidgets.QMainWindow):
"""The maximum number of sample points to store."""
DEFAULT_MAX_SAMPLES = 1000
DEFAULT_IP_ADDR = '192.168.1.128'
DEFAULT_IP_ADDR = '192.168.1.28'
DEFAULT_PORT = 1550
LASER_DIODE_PARAMETERS = [

View File

@@ -206,7 +206,7 @@
</size>
</property>
<property name="text">
<string>128</string>
<string>28</string>
</property>
<property name="maxLength">
<number>3</number>

View File

@@ -206,7 +206,7 @@
</size>
</property>
<property name="text">
<string>128</string>
<string>28</string>
</property>
<property name="maxLength">
<number>3</number>

View File

@@ -29,7 +29,7 @@ pub struct IpSettings {
impl Default for IpSettings {
fn default() -> Self {
IpSettings {
addr: [192, 168, 1, 128],
addr: [192, 168, 1, 28],
port: 1550,
prefix_len: 24,
gateway: [192, 168, 1, 1],