I am going to use QtCustomPlot for the same, however, I had a small query (would apologise if this sounds simple and irrelevant to most of the users, however, I'm using Qt for the first time and have been struggling since quite a few days to figure out things)
So below is the query: I tried executing below mentioned function (picked up from the heartrate.cpp file)
void ADCReader::updateHeartRateValue(const QLowEnergyCharacteristic &c,
const QByteArray &value)
{
// ignore any other characteristic change -> shouldn't really happen though
if (c.uuid() != QBluetoothUuid(QBluetoothUuid::HeartRateMeasuremen t))
return;
const quint8 *data = reinterpret_cast<const quint8 *>(value.constData());
quint8 flags = data[0];
}
And on passing the numbers from 90 to 110, got the output as mentioned below:
value,16
value,144
value,145
value,146
value,147
value,148
value,149
value,150
value,151
value,152
value,153
value,16
value,16
value,16
value,16
value,16
value,16
value,16
value,16
value,16
value,16.
I think it is little endian format, but I am not sure about the series of 16 displayed in the output. Would be really helpful if someone would be able to explain the reason for getting this type of output.
EDIT: I got the output after inserting
QString s = value.toHex();
Bookmarks