executeCommand<T> method
Implementation
Future<VtjCommandResult<T>> executeCommand<T>(VtjCommand<T> command) async {
if (_writeCharacteristic == null || _replyCharacteristic == null) {
return const VtjCommandResult.failure(
'Characteristics not initialized',
null,
);
}
return await command.execute(_writeCharacteristic!, _replyCharacteristic!);
}