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