add:增加文档和上位机

This commit is contained in:
2026-05-21 12:56:29 +08:00
parent 8ee0849831
commit a1d1f19585
95 changed files with 8594 additions and 43 deletions

31
上位机/YKC/Config.cs Normal file
View File

@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
namespace YKC
{
public static class Config
{
public static string TargetIp { get; set; } = "10.12.19.100";
public static int TargetPort { get; set; } = 6001;
public static int LocalPort { get; set; } = 6002;
public static int UdpTimeout { get; set; } = 3;
public static readonly Dictionary<string, string> Cmd = new Dictionary<string, string>
{
["LOGIN"] = "server_login",
["GET_STATUS"] = "server_get_status",
["SET_PILE_ID"] = "server_set_pile_id",
["GET_PILE_INFO"] = "server_get_pile_info",
["REBOOT"] = "server_reboot",
["REPORT_DATA"] = "report_data",
["PILE_METRICS"] = "pile_metrics",
["REAL_TIME_DATA"] = "real_time_data",
["GET_GW_INFO"] = "gateway_get_info",
["GET_4G_STATUS"] = "gateway_get_4g_status",
["GET_CLOUD_CONFIG"] = "gateway_get_cloud_config",
["SET_CLOUD_CONFIG"] = "gateway_set_cloud_config",
["GET_NET_CONFIG"] = "gateway_get_net_config",
["SET_NET_CONFIG"] = "gateway_set_net_config",
};
}
}