setTransmitAI method

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

Sets the transmission of the AI (Application Identifier) for GS1 Databar symbology.

deviceId - The identifier of the target device. enabled - A boolean indicating whether to enable (true) or disable (false) the transmission of the AI.

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

Implementation

Future<CommandResponse> setTransmitAI(
    {required deviceId, required bool enabled}) async {
  final String command =
      enabled ? gs1DataBarTransmitAI : gs1DataBarDoNotTransmitAI;
  return sendCommand(deviceId, command);
}