RemoteControl constructor

RemoteControl({
  1. required String serverUrl,
  2. required String deviceMac,
  3. required String token,
  4. String? turnServerIP,
  5. int? turnServerPort,
  6. String? turnServerUsername,
  7. String? turnServerCredential,
  8. Duration inactivityDuration = const Duration(minutes: 1),
})

Implementation

RemoteControl({
  required this.serverUrl,
  required this.deviceMac,
  required this.token,
  this.turnServerIP,
  this.turnServerPort,
  this.turnServerUsername,
  this.turnServerCredential,
  this.inactivityDuration = const Duration(minutes: 1),
}) {
  // Inicializar el StreamController inmediatamente
  _ensureCommandController();
  log('🎯 RemoteControl inicializado (inactivityDuration=${inactivityDuration.inMinutes}m)');
}