customCommand method

Future<Uint8List> customCommand({
  1. required Set<Iso15693RequestFlag> requestFlags,
  2. required int customCommandCode,
  3. required Uint8List customRequestParameters,
})

Sends a manufacturer-defined command. customCommandCode is 0xA0-0xDF.

A code that is not a byte at all throws PlatformException(code: 'invalidParameter') without reaching the tag. Anything narrower is left to the tag: a code inside a byte but outside 0xA0-0xDF is not refused here, it is simply one no tag answers as a custom command -- sendRequest is the way to send those.

Implementation

Future<Uint8List> customCommand({
  required Set<Iso15693RequestFlag> requestFlags,
  required int customCommandCode,
  required Uint8List customRequestParameters,
}) => iosApi.iso15693CustomCommand(_handle, _flags(requestFlags), customCommandCode, customRequestParameters);