Command.setMusic constructor

Command.setMusic({
  1. int? id,
  2. required int action,
  3. required String host,
  4. required int port,
})

Command to start or stop music mode (main light).

When music mode is enabled, no property will be reported back and no message quota is checked.

  • action - 0 to turn off music mode, 1 to turn on music mode.
  • host - the IP adress of the music server.
  • port - the TCP port music application is listening on.

Implementation

Command.setMusic({
  this.id,
  required int action,
  required String host,
  required int port,
})  : method = CommandMethods.setMusic,
      parameters = <dynamic>[action, host, port];