连接状态:
@(XiaoZhiAgent.IsConnected ? "✅ 已连接" : "❌ 未连接")
OTA状态:
@XiaoZhiAgent.OtaStatus
@if (XiaoZhiAgent.LastOtaCheckTime.HasValue)
{
最后检查:
@XiaoZhiAgent.LastOtaCheckTime?.ToString("yyyy-MM-dd HH:mm:ss")
}
@if (!string.IsNullOrEmpty(XiaoZhiAgent.ActivationCode))
{
激活码:
@XiaoZhiAgent.ActivationCode
}
@if (!string.IsNullOrEmpty(XiaoZhiAgent.ActivationMessage))
{
激活消息:
@XiaoZhiAgent.ActivationMessage
}
当前版本:
@XiaoZhiAgent.CurrentVersion
@if (!string.IsNullOrEmpty(XiaoZhiAgent.LatestVersion))
{
最新版本:
@XiaoZhiAgent.LatestVersion
更新状态:
@(XiaoZhiAgent.NeedUpdate ? "⚠️ 需要更新" : "✅ 已是最新")
}
@if (!string.IsNullOrEmpty(XiaoZhiAgent.FirmwareVersion))
{
固件版本:
@XiaoZhiAgent.FirmwareVersion
}
@if (!string.IsNullOrEmpty(XiaoZhiAgent.FirmwareUrl))
{
}
@if (XiaoZhiAgent.ServerTime.HasValue)
{
服务器时间:
@XiaoZhiAgent.ServerTime?.ToString("yyyy-MM-dd HH:mm:ss")
}
@if (!string.IsNullOrEmpty(XiaoZhiAgent.MqttEndpoint))
{
MQTT服务器:
@XiaoZhiAgent.MqttEndpoint
}