sendCommand<T> method
- BleCommandTx<
T> commandTx, { - int? commandId,
Implementation
Future<T?> sendCommand<T>(BleCommandTx<T> commandTx, {int? commandId}) async {
commandId ??= getNextCommandId();
final envelope = commandTx.getCommand(commandId);
return _awaitReply(
commandTx.parser,
() => _sendBleCommand(envelope),
timeout: commandTx.timeout,
commandId: envelope.commandId,
);
}