added more debug output
parent
268af49e0a
commit
72f821849b
|
|
@ -89,8 +89,10 @@ void IntegrationPluginSolarLog::getData(Thing *thing)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QByteArray rawData = reply->readAll();
|
||||||
|
qCDebug(dcSolarlog()) << "Data:" << rawData;
|
||||||
QJsonParseError error;
|
QJsonParseError error;
|
||||||
QJsonDocument data = QJsonDocument::fromJson(reply->readAll(), &error);
|
QJsonDocument data = QJsonDocument::fromJson(rawData, &error);
|
||||||
if (error.error != QJsonParseError::NoError) {
|
if (error.error != QJsonParseError::NoError) {
|
||||||
qCWarning(dcSolarlog()) << "Received invalide JSON object" << data.toJson();
|
qCWarning(dcSolarlog()) << "Received invalide JSON object" << data.toJson();
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue