enableOnlySymbology method
Future<CommandResponse>
enableOnlySymbology({
- required dynamic deviceId,
- required SymbologyType type,
Enables a specific symbology on the device.
deviceId
is the ID of the device where the symbology should be enabled.
type
is the symbology to enable exclusively.
Returns a CommandResponse indicating the success or failure of the operation.
Implementation
Future<CommandResponse> enableOnlySymbology(
{required deviceId, required SymbologyType type}) async {
final String? command = _enableOnlySymbologyCommands[type];
if (command != null) {
return sendCommand(deviceId, command);
} else {
final msg = 'Command not found for $type';
_appLogger.error(msg);
return CommandResponse.failed(msg);
}
}