diff options
author | Clément Bénier <clement.benier@iot.bzh> | 2018-11-21 18:31:51 +0100 |
---|---|---|
committer | Clément Bénier <clement.benier@iot.bzh> | 2018-11-21 18:36:06 +0100 |
commit | 7ecf0c1b7fb926f8e5c7a49a4959d59509599cc9 (patch) | |
tree | 88001d37d824cac19b724ef2160b693c1d02a50c | |
parent | 94176d9f5f1a5d9b1f298000c2868ebab148d805 (diff) |
onappid: retrieves the 'appid' with id fieldguppy_6.99.1guppy/6.99.16.99.1
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.c | 2 |
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; |