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, 出参中带有下次启动与任务信息。