32 lines
1.2 KiB
C#
32 lines
1.2 KiB
C#
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",
|
|
};
|
|
}
|
|
}
|