Cannot read more than 2048 data points
The data start repeating after data point 2048.
This is because what we interpret as a keep-alive 0x00 0x01 0x40
is actually a request for "page 1" of the data.
We keep requesting that, so we get the same data over and over.
We need to replace 0x01
by the page number that we want to receive, which is num_data / 1024
.