startFuotaTask method
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,
);
}