128 lines
3.8 KiB
C#
128 lines
3.8 KiB
C#
using MasstransferSecurity.Utils;
|
|
|
|
namespace MasstransferCommon.Model.Constant;
|
|
|
|
/// <summary>
|
|
/// 这里保存所有的 Mqtt Topic
|
|
/// topic 的基本结构构成
|
|
/// up/{DeviceInfoUtil.GetDeviceSN()}/{cmd}/{version}
|
|
///
|
|
/// </summary>
|
|
public static class Topics
|
|
{
|
|
// ReSharper disable once InconsistentNaming
|
|
private static string Version = "1.0.0";
|
|
|
|
|
|
/// <summary>
|
|
/// 上报生产数据
|
|
/// </summary>
|
|
public static string ReportProductRecord = $"up/{DeviceInfoUtil.GetDeviceSN()}/100/{Version}";
|
|
|
|
/// <summary>
|
|
/// 图片上传
|
|
/// </summary>
|
|
public static string ImageUpload = $"up/{DeviceInfoUtil.GetDeviceSN()}/102/{Version}";
|
|
|
|
/// <summary>
|
|
/// 查询图片
|
|
/// </summary>
|
|
public static string QueryImage = $"down/{DeviceInfoUtil.GetDeviceSN()}/103/{Version}";
|
|
|
|
/// <summary>
|
|
/// 坐标文件上传
|
|
/// </summary>
|
|
public static string CoordinateUpload = $"up/{DeviceInfoUtil.GetDeviceSN()}/104/{Version}";
|
|
|
|
/// <summary>
|
|
/// 查询坐标文件
|
|
/// </summary>
|
|
public static string QueryCoordinate = $"down/{DeviceInfoUtil.GetDeviceSN()}/105/{Version}";
|
|
|
|
/// <summary>
|
|
/// 上报用户操作数据
|
|
/// </summary>
|
|
public static string ReportOperationLog = $"up/{DeviceInfoUtil.GetDeviceSN()}/200/{Version}";
|
|
|
|
/// <summary>
|
|
/// 上传系统日志文件
|
|
/// </summary>
|
|
public static string UploadLogFile = $"up/{DeviceInfoUtil.GetDeviceSN()}/201/{Version}";
|
|
|
|
/// <summary>
|
|
/// 查询系统日志文件
|
|
/// </summary>
|
|
public static string QueryLogFile = $"down/{DeviceInfoUtil.GetDeviceSN()}/202/{Version}";
|
|
|
|
/// <summary>
|
|
/// 上报故障信息
|
|
/// </summary>
|
|
public static string ReportFaultRecord = $"up/{DeviceInfoUtil.GetDeviceSN()}/203/{Version}";
|
|
|
|
|
|
/// <summary>
|
|
/// 上报配置数据
|
|
/// </summary>
|
|
public static string ReportConfigData = $"up/{DeviceInfoUtil.GetDeviceSN()}/400/{Version}";
|
|
|
|
/// <summary>
|
|
/// 下发配置数据
|
|
/// </summary>
|
|
public static string DownloadConfigData = $"down/{DeviceInfoUtil.GetDeviceSN()}/401/{Version}";
|
|
|
|
/// <summary>
|
|
/// 下发远程控制指令
|
|
/// </summary>
|
|
public static string RemoteControl = $"down/{DeviceInfoUtil.GetDeviceSN()}/402/{Version}";
|
|
|
|
/// <summary>
|
|
/// 上报配置字典数据
|
|
/// </summary>
|
|
public static string ReportConfigDictionary = $"up/{DeviceInfoUtil.GetDeviceSN()}/403/{Version}";
|
|
|
|
/// <summary>
|
|
/// 下发OTA包
|
|
/// </summary>
|
|
// ReSharper disable once InconsistentNaming
|
|
public static string IssuedOTAPackage = $"down/{DeviceInfoUtil.GetDeviceSN()}/500/{Version}";
|
|
|
|
|
|
/// <summary>
|
|
/// 查询OTA信息
|
|
/// </summary>
|
|
// ReSharper disable once InconsistentNaming
|
|
public static string QueryOTA = $"up/{DeviceInfoUtil.GetDeviceSN()}/501/{Version}";
|
|
|
|
|
|
/// <summary>
|
|
/// OTA 更新反馈
|
|
/// </summary>
|
|
// ReSharper disable once InconsistentNaming
|
|
public static string OTAUpgradeFeedback = $"up/{DeviceInfoUtil.GetDeviceSN()}/502/{Version}";
|
|
|
|
|
|
/// <summary>
|
|
/// 更新证书事件
|
|
/// </summary>
|
|
public static string UpdateLicenseEvent = $"up/{DeviceInfoUtil.GetDeviceSN()}/503/{Version}";
|
|
|
|
/// <summary>
|
|
/// 更新证书事件反馈
|
|
/// </summary>
|
|
public static string UpdateLicenseEventFeedback = $"up/{DeviceInfoUtil.GetDeviceSN()}/505/{Version}";
|
|
|
|
/// <summary>
|
|
/// 上行心跳信息
|
|
/// </summary>
|
|
public static string HeartBeat = $"up/{DeviceInfoUtil.GetDeviceSN()}/600/{Version}";
|
|
|
|
/// <summary>
|
|
/// 上行系统状态信息
|
|
/// </summary>
|
|
public static string ReportSystemStat = $"up/{DeviceInfoUtil.GetDeviceSN()}/601/{Version}";
|
|
|
|
/// <summary>
|
|
/// 上行系统版本信息
|
|
/// </summary>
|
|
public static string ReportSystemVersion = $"up/{DeviceInfoUtil.GetDeviceSN()}/602/{Version}";
|
|
} |