请问情景模式数据格式中变化时间的单位是什么?谢谢
【已解决】mesh SDK 情景模式(DPID-6)数据格式中变化时间的问题
-
- Posts: 46
Re: mesh SDK 情景模式(DPID-6)数据格式中变化时间的问题
你好,变化时间是 0——100%占比,通过下面计算后单位是 ms。
/* APP setting in constrast ,APP data is rang from 40~ 100 /
/ attention:(105 - x) is attentin to make when the APP send the fastest speed 100, ucTimes isn't equal to zeoro! /
/ attention: APP send the times is equal to speed set ! /
/ attention: times and speed unit: ms ! /
if(pCtrlParam ->ChangeMode != SCENE_SHADE) {
pCtrlParam ->uiTimes = (105 - 间隔) * 100;
pCtrlParam ->uiSpeed = (105 - 变化) * 100;
} else {
pCtrlParam ->uiTimes = (110 - 间隔) * 100;
pCtrlParam ->uiSpeed = pCtrlParam ->uiTimes / 2; / scene change speed is time / 2 */
}