From 0c6ba6d6fe84919112448f585402cc895e230951 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Fri, 23 Dec 2011 19:02:25 +0100 Subject: [PATCH] doc: Modify StartEmulation prototype By requiring a complete NDEF record dictionary as the StartEmulation argument, card emulation will only start when having something relevant to export. --- doc/adapter-api.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/adapter-api.txt b/doc/adapter-api.txt index 9eb720b..076f0d5 100644 --- a/doc/adapter-api.txt +++ b/doc/adapter-api.txt @@ -44,7 +44,7 @@ Methods: dict GetProperties() org.neard.Error.Failed org.neard.Error.NotSupported - object StartEmulation(string TagType) + object StartEmulation(dict attributes) Starts tag emulation mode. @@ -52,8 +52,11 @@ Methods: dict GetProperties() subsequent calls to this method will always return the same object path. - Valid tag types are "Type 1", "Type 2", "Type 3", - "Type 4" and "NFC-DEP". + The attributes dictionary is described by the + Record properties. + For example, one would add a type, a Language, an + Encoding and a Representation for emulating a text + NDEF record. Returns the object path for the emulated target. -- 2.7.4