Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 14, 2022 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/a26773dc0ca75a0e9c8d2747ade4bf43 to your computer and use it in GitHub Desktop.
Save parzibyte/a26773dc0ca75a0e9c8d2747ade4bf43 to your computer and use it in GitHub Desktop.
print("Escribiendo...");
int chunkSize = 1;
int index = 0;
while (index < datos.length) {
var chunk = datos.skip(index).take(chunkSize);
await caracteristica.write(chunk.toList());
index += chunkSize;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment