setPostambleFromString method

Future<CommandResponse> setPostambleFromString({
  1. required dynamic deviceId,
  2. required String postamble,
})

Sets the postamble formatting using a string.

deviceId - The identifier of the target device. postamble - A string to be used as the postamble, with a maximum length of 8.

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

Implementation

Future<CommandResponse> setPostambleFromString(
    {required deviceId, required String postamble}) async {
  final directInputKeysCodes =
      _getDirectInputKeysCodesFromString(postamble, _maxPostambleChars);
  return sendCommand(deviceId, postamble, parameters: directInputKeysCodes);
}