setAiming method

Future<CommandResponse> setAiming({
  1. required dynamic deviceId,
  2. required bool enabled,
})

Toggles the aiming feature for the scanner based on the enabled flag.

deviceId - The identifier of the target device. enabled - A boolean indicating whether to enable or disable aiming.

Returns a CommandResponse indicating the success or failure of the operation.

Implementation

Future<CommandResponse> setAiming(
    {required deviceId, required bool enabled}) async {
  return await sendCommand(
      deviceId, enabled ? aimingEnabled : aimingDisabled);
}