Skip to content

Commit cc0a6ed

Browse files
committed
chore: Improve example verbiage
1 parent db721b3 commit cc0a6ed

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

examples/Example9_BinarySendReceiveChunked/Example9_BinarySendReceiveChunked.ino

+5-4
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,11 @@ void loop()
172172
NoteBinaryStoreDecodedLength(&rx_data_len);
173173

174174
// We intend to receive the Notecard's binary data store in chunks of
175-
// 12 bytes. The `offset` and `length` used to request data describe
176-
// decoded data. Therefore we will need to allocate a buffer that is
177-
// large enough to hold the encoded data that will be transferred from
178-
// the Notecard, as well as the terminating newline.
175+
// 12 bytes. The `offset` and `length` values, used to request data, are
176+
// based on decoded data size, not encoded size. Therefore, we need to
177+
// allocate a buffer large enough to accommodate the encoded data to be
178+
// transferred from the Notecard, as well as the terminating newline.
179+
179180
// `NoteBinaryMaxEncodedLength()` will compute the worst-case size of
180181
// the encoded length plus the byte required for the newline terminator.
181182
const uint32_t rx_chunk_size = 12;

0 commit comments

Comments
 (0)