v2.0 引用新一代Remoting,简化IoTZero架构
智能大石头 authored at 2024-06-20 23:03:45
626.00 B
ZeroIoT
using NewLife.Remoting.Models;

namespace NewLife.IoT.Models;

/// <summary>心跳响应</summary>
public class PingResponse : IPingResponse
{
    /// <summary>本地时间。ms毫秒</summary>
    public Int64 Time { get; set; }

    /// <summary>服务器时间</summary>
    public Int64 ServerTime { get; set; }

    /// <summary>心跳周期。单位秒</summary>
    public Int32 Period { get; set; }

    /// <summary>令牌。现有令牌即将过期时,颁发新的令牌</summary>
    public String Token { get; set; }

    /// <summary>下发命令</summary>
    public CommandModel[]? Commands { get; set; }
}