Download stored data

In order to download data we must know how much data is stored by using the meminfo used command. Then we can download either the entire amount in one transfer or in multiple chunks of data. Below is an example where we download in multiple smaller chunks. Each chunk of downloaded data is followed by a two byte CRC error check which must not be included when parsing the data. For parsing the downloaded data see the Format of Stored Data section.

>> meminfo used
<< meminfo used = 2608
>> readdata dataset = 1, size = 500, offset = 0
<< readdata dataset = 1, size = 500, offset = 0<cr><lf><bytes[0…499]-of-data><crc>
>> readdata dataset = 1, size = 500, offset = 500
<< readdata dataset = 1, size = 500, offset = 500<cr><lf><bytes[500…999]-of-data><crc>

>> readdata dataset = 1, size = 500, offset = 1000
<< readdata dataset = 1, size = 500, offset = 1000<cr><lf>
<bytes[1000…1499]-of-data><crc>
>> readdata dataset = 1, size = 500, offset = 1500
<< readdata dataset = 1, size = 500, offset = 1500<cr><lf>
<bytes[1500…1999]-of-data><crc>
>> readdata dataset = 1, size = 500, offset = 2000
<< readdata dataset = 1, size = 500, offset = 2000<cr><lf>
<bytes[2000…2499]-of-data><crc>

>> readdata dataset = 1, size = 500, offset = 2500
<< readdata dataset = 1, size = 108, offset = 2500<cr><lf>
<bytes[2500…2607]-of-data><crc>