sendToConnector method

Future<bool> sendToConnector(
  1. List<int> fn(), {
  2. int? delayMs,
})

Implementation

Future<bool> sendToConnector(List<int> Function() fn, {int? delayMs}) async {
  await connector.connect(model);
  final resp = await connector.send(fn());
  if (delayMs != null) {
    await Future.delayed(Duration(milliseconds: delayMs));
  }
  return resp;
}