aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Bénier <clement.benier@iot.bzh>2018-11-21 18:31:51 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2018-11-22 11:28:10 +0100
commita9178b39a9b48b5a67a3f5726c0b633825336c40 (patch)
tree5546d46135bb3e4f84c96a66cf1380c1ca496ac7
parente54b1f24aecedfccbb188dcbc9a7a9490cc248a8 (diff)
onappid: retrieves the 'appid' with id fieldflounder_6.0.3flounder/6.0.36.0.3
the value of id field shoud be a string not an integer so {si} is replaced by {ss} Change-Id: Ief8a1e56295085cfe818301fd0073399a3ae6315 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
-rw-r--r--src/afm-binding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afm-binding.c b/src/afm-binding.c
index 037c108..f4bba8a 100644
--- a/src/afm-binding.c
+++ b/src/afm-binding.c
@@ -244,7 +244,7 @@ static int onappid(afb_req_t req, const char *method, const char **appid)
/* get the appid if any */
if (!wrap_json_unpack(json, "s", appid)
- || !wrap_json_unpack(json, "{si}", _id_, appid)) {
+ || !wrap_json_unpack(json, "{ss}", _id_, appid)) {
/* found */
INFO("method %s called for %s", method, *appid);
return 1;