Using APIv3 the json format for a response of an API call has changed a
bit, removing one extra useless level.
BUG: SPECT-1973
Change-Id: If5cfcda5740cf48637257a510f030dc84e853057
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
{
// TODO: Success, update the slider
qDebug() << "Volume changed: " << v;
- int newVolume = v.toObject()["response"].toObject()["response"].toObject()["volnew"].toInt();
+ int newVolume = v.toObject()["response"].toObject()["volnew"].toInt();
auto currentVolume = volumes_.find(name);
if (currentVolume != volumes_.end() && *currentVolume == newVolume)
return;