summaryrefslogtreecommitdiffstats
path: root/README.md
blob: a1d9471760ea049de2eab1243fe4e6d8da03da23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# NFC Service

## 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.

## Verbs

| Name               | Description                          | JSON Parameters                                                        |
|--------------------|:-------------------------------------|:-----------------------------------------------------------------------|
| subscribe          | subscribe to NFC events              | *Request:* {"value": "presence"}                                       |
| unsubscribe        | unsubscribe to NFC events            | *Request:* {"value": "presence"}                                       |

## Events
### neard response

| Name               | Description                          | JSON Response                                                          |
|--------------------|:-------------------------------------|:-----------------------------------------------------------------------|
| presence           | event that reports NFC tag presence  |  *Response:* {"status": "detected",                                    |
|                    |                                      |      "record": { "Type": "Text", "uid" : "042eb3628e4981"},            |