执行定时功能时,自动上报状态
This commit is contained in:
parent
7a2693bb61
commit
b72dcac81f
|
@ -454,6 +454,9 @@ static void OnAlarm(AlarmItem& item)
|
||||||
{
|
{
|
||||||
auto client = Client;
|
auto client = Client;
|
||||||
client->Store.Write(bs[2], bs.Sub(3, bs[0] - 2));
|
client->Store.Write(bs[2], bs.Sub(3, bs[0] - 2));
|
||||||
|
|
||||||
|
// 主动上报状态
|
||||||
|
client->ReportAsync(bs[2], bs[0] - 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -239,6 +239,9 @@ static void OnAlarm(AlarmItem& item)
|
||||||
{
|
{
|
||||||
auto client = IOK027X::Current->Client;
|
auto client = IOK027X::Current->Client;
|
||||||
client->Store.Write(bs[2], bs.Sub(3, bs[0] - 2));
|
client->Store.Write(bs[2], bs.Sub(3, bs[0] - 2));
|
||||||
|
|
||||||
|
// 主动上报状态
|
||||||
|
client->ReportAsync(bs[2], bs[0] - 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -264,6 +264,9 @@ static void OnAlarm(AlarmItem& item)
|
||||||
{
|
{
|
||||||
auto client = IOK0612::Current->Client;
|
auto client = IOK0612::Current->Client;
|
||||||
client->Store.Write(bs[2], bs.Sub(3, bs[0] - 2));
|
client->Store.Write(bs[2], bs.Sub(3, bs[0] - 2));
|
||||||
|
|
||||||
|
// 主动上报状态
|
||||||
|
client->ReportAsync(bs[2], bs[0] - 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -223,6 +223,9 @@ static void OnAlarm(AlarmItem& item)
|
||||||
{
|
{
|
||||||
auto client = PA0903::Current->Client;
|
auto client = PA0903::Current->Client;
|
||||||
client->Store.Write(bs[2], bs.Sub(3, bs[0] - 2));
|
client->Store.Write(bs[2], bs.Sub(3, bs[0] - 2));
|
||||||
|
|
||||||
|
// 主动上报状态
|
||||||
|
client->ReportAsync(bs[2], bs[0] - 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue