WLG/doc/readme.txt
2025-04-29 11:14:37 +08:00

11 lines
1.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

2025-4-29
1 场景1 传感器发送特征值过来时表明这是特征值发送时间或随机启动的调用StartSchedule
(1) 如果在特征值时间窗里如果有配置需要更新的话返回值为kScheduleConfigSensor表明要进行配置更新更新完成后调用GetNextDuration来获取下次启动时间与任务。
(2) 如果在特征值时间窗里如果没有配置需要更新的话函数的出参StartSchedule(int short_addr, int &next_duration, int &next_task_id)会说明下次启动时间与任务,
如果是波形任务自行查找需要哪些波形此函数返回值为kScheduleResultNone。
2 场景2传感器发送波形过来时处理完波形调用int GetNextDuration(int short_addr,int &next_task_id)来获取下次启动时间与任务
3 场景3传感器认为此时是升级时间发送请求网关调用StartSchedule如果确实有升级任务返回kScheduleUpgrade如果没有升级任务
返回值为kScheduleResultNone, 出参中带有下次启动与任务信息。