Command.cronAdd constructor

Command.cronAdd({
  1. int? id,
  2. int type = 0,
  3. required int value,
})

Command to start a timer job on the device.

  • type - currently can by only 0 (means power off)
  • value is the length of the timer in minutes.

This command is accepted only if the device is in 'ON' state.

Implementation

Command.cronAdd({this.id, int type = 0, required int value})
    : method = CommandMethods.cronAdd,
      parameters = <int>[type, value];