feat: update MQTT broker and enhance data handling

- Changed MQTT broker address from 192.168.0.101 to 192.168.1.100 across multiple files.
- Introduced new data handling methods in data_transmission_example.py for constructing and parsing data requests and responses.
- Updated MQTT topics to follow a new structure for better organization and clarity.
- Enhanced sensor logic in JackeryHome component to support new data formats and improve device state management.
This commit is contained in:
不求圣剑
2025-11-18 11:06:31 +08:00
parent b89c35a11d
commit 054fa172f2
4 changed files with 311 additions and 98 deletions

View File

@@ -3,9 +3,9 @@ import time
import random
import paho.mqtt.client as mqtt
MQTT_BROKER = "192.168.0.101"
MQTT_BROKER = "192.168.1.100"
MQTT_PORT = 1883
MQTT_CLIENT_ID = "hem_simulator"
MQTT_CLIENT_ID = "jackery_home_simulator"
# 模式控制变量
# 0: 自发自用模式 (Self-consumption)