执行定时功能时,自动上报状态

This commit is contained in:
Stone 2016-11-14 02:52:01 +00:00
parent 7a2693bb61
commit b72dcac81f
4 changed files with 12 additions and 0 deletions

View File

@ -454,6 +454,9 @@ static void OnAlarm(AlarmItem& item)
{
auto client = Client;
client->Store.Write(bs[2], bs.Sub(3, bs[0] - 2));
// 主动上报状态
client->ReportAsync(bs[2], bs[0] - 2);
}
}

View File

@ -239,6 +239,9 @@ static void OnAlarm(AlarmItem& item)
{
auto client = IOK027X::Current->Client;
client->Store.Write(bs[2], bs.Sub(3, bs[0] - 2));
// 主动上报状态
client->ReportAsync(bs[2], bs[0] - 2);
}
}

View File

@ -264,6 +264,9 @@ static void OnAlarm(AlarmItem& item)
{
auto client = IOK0612::Current->Client;
client->Store.Write(bs[2], bs.Sub(3, bs[0] - 2));
// 主动上报状态
client->ReportAsync(bs[2], bs[0] - 2);
}
}

View File

@ -223,6 +223,9 @@ static void OnAlarm(AlarmItem& item)
{
auto client = PA0903::Current->Client;
client->Store.Write(bs[2], bs.Sub(3, bs[0] - 2));
// 主动上报状态
client->ReportAsync(bs[2], bs[0] - 2);
}
}