File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
examples/Example9_BinarySendReceiveChunked Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments