From 025f9e643da7272123fb94fdf37d4284a356c4fe Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Sun, 16 Dec 2018 21:55:05 -0500 Subject: Switch back to sending all tag contents to clients Switch back to sending all tag records to subscribed clients on presence detection. While sending the first text record as the "uid" value the identity agent expects works, in the grand scheme of things, it is better to keep the NFC service generic and add the required parsing to the identity agent instead. Change-Id: I157dde987fb499772bb792b4c723e85734e2c9e4 Signed-off-by: Scott Murray --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index a9eec9b..506d984 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,8 @@ ## Overview NFC service uses neard package to detect the presence of NFC tags and signal clients via an event. -The NDEF data shall include a text record ('uid') to keep compatibility with the existing agl-service-identity-agent. +The presence event shall include a dictionary named "record" that contains entries with a "Type" +field and a value field named after the "Type" value. ## Verbs @@ -18,4 +19,4 @@ The NDEF data shall include a text record ('uid') to keep compatibility with the | Name | Description | JSON Response | |--------------------|:-------------------------------------|:-----------------------------------------------------------------------| | presence | event that reports NFC tag presence | *Response:* {"status": "detected", | -| | | "uid": "042eb3628e4981"}, | +| | | "record": { "Type": "URI", "URI": "http://www.nfc-forum.com" } } | -- cgit 1.2.3-korg