sendToConnector method
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;
}