startFuotaTask method

Future<void> startFuotaTask({
  1. required String id,
  2. LoRaWANStartFuotaTask? loRaWAN,
})

Starts a FUOTA task.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Implementation

Future<void> startFuotaTask({
  required String id,
  LoRaWANStartFuotaTask? loRaWAN,
}) async {
  final $payload = <String, dynamic>{
    if (loRaWAN != null) 'LoRaWAN': loRaWAN,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/fuota-tasks/${Uri.encodeComponent(id)}',
    exceptionFnMap: _exceptionFns,
  );
}