1

schedule

Тема: schedule

Hello Team,

https://sdk.wialon.com/wiki/en/sidebar/ … e_schedule

In above API,

what is sch object parameters?
Can you please explain each params value type?

"sch":{        /* time limitation */
        "f1":<uint>,    /* beginning of interval 1 */
        "f2":<uint>,    /* beginning of interval 2 */
        "t1":<uint>,    /* ending of interval 1 */
        "t2":<uint>,    /* ending of interval 2 */
        "m":<uint>,    /* days of month mask */
        "y":<uint>,    /* months mask */
        "w":<uint>    /* days of week mask */
    }

2

schedule

Re: schedule

samir.agile пишет:

Can you please explain each params value type?

"sch":{        /* time limitation */
        "f1":<uint>,    /* beginning of interval 1 */
        "f2":<uint>,    /* beginning of interval 2 */
        "t1":<uint>,    /* ending of interval 1 */
        "t2":<uint>,    /* ending of interval 2 */
        "m":<uint>,    /* days of month mask */
        "y":<uint>,    /* months mask */
        "w":<uint>    /* days of week mask */
    }

Hello!

these parameters mean Time limitation - please look here about it
Time limitations can be applied to schedule to restrict its operation to certain time intervals, days of the week, days of the month or months. For example, you can select only event or odd days or only working hours of weekdays, etc. Note that this option does not work with 'Absolute' schedule type.

Value days of month/months/days of week are specified as bit mask, for example, "w":7 - means 1110 0000, so Mon, Tu, Wen are selected (each bit corresponds to each day in week, the same for months, days of month)

beginning/ending of interval 1/2 are  in minutes, for example, "f1":500 means interval begins at 08:00 (8 hours = 500 min) , "t2":1379 - interval ends at 22:59 (22 h + 59 min = 1379 min)

,"sch":{"f1":500,"f2":1200,"t1":779,"t2":1379,"m":92291119,"y":28,"w":7,"fl":0
}

If you don't need to use Time limitation you can set up all values = 0

Diana Cheley
Wialon Hosting Expert
Gurtam