diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-12-19 12:06:56 +0100 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-12-20 10:56:05 +0100 |
commit | a34509b9e7e389c7311b1218602a2d6ba3cacda9 (patch) | |
tree | 72690381feb471479d43cfdb166655f8c75343ab /4a-hal/4a-hal-controllers | |
parent | 86a1b87407caaabd3a856467e43a0562b7e83be5 (diff) |
Update syntax of a request of an halmap verb
Update syntax of a request of an halmap verb :
Use key 'value' instead of 'val'.
Change-Id: Iadbb05f0bf70c689e1657f065a8f3b1ae31a8849
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to '4a-hal/4a-hal-controllers')
-rw-r--r-- | 4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.c b/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.c index 07662f1..95fde6b 100644 --- a/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.c +++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.c @@ -474,7 +474,7 @@ void HalCtlsActionOnAlsaCtl(AFB_ReqT request) snprintf(cardIdString, 6, "hw:%i", currentCtlHalData->sndCardId); - if(wrap_json_unpack(requestJson, "{s:o}", "val", &valueJ)) { + if(wrap_json_unpack(requestJson, "{s:o}", "value", &valueJ)) { AFB_ReqFailF(request, "request_json", "Error when trying to get request value object inside request '%s'", json_object_get_string(requestJson)); |