associateWirelessDeviceWithFuotaTask method

Future<void> associateWirelessDeviceWithFuotaTask({
  1. required String id,
  2. required String wirelessDeviceId,
})

Associate a wireless device with a FUOTA task.

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

Implementation

Future<void> associateWirelessDeviceWithFuotaTask({
  required String id,
  required String wirelessDeviceId,
}) async {
  final $payload = <String, dynamic>{
    'WirelessDeviceId': wirelessDeviceId,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/fuota-tasks/${Uri.encodeComponent(id)}/wireless-device',
    exceptionFnMap: _exceptionFns,
  );
}