增加記錄api,此函數(shù)為擴展函數(shù)
TNF:根據(jù)NFC
NDEF定義
Type Name
Format |
Value |
Empty
|
0x00
|
NFC
Forum well-known type [NFC RTD] |
0x01
|
Media-type
as defined in RFC 2046 [RFC 2046] |
0x02
|
Absolute
URI as defined in RFC 3986 [RFC 3986] |
0x03
|
NFC
Forum external type [NFC RTD] |
0x04
|
Unknown
|
0x05
|
Unchanged
(see section 2.3.3) |
0x06
|
Reserved
|
0x07
|
Typelen:對于TNF=2或者TNF=4,協(xié)議寫明Mime數(shù)據(jù)類型或者外部數(shù)據(jù)類型,
Typelen為類型的字節(jié)數(shù)。
Type:類型的數(shù)據(jù)首地址。
Uri:對于TNF=1,對應(yīng)的uri字節(jié),如果TNF=1, 此函數(shù)與AddRecord功能一致。
sLen:記錄內(nèi)容的長度.
S:記錄的內(nèi)容, 對于TNF=1,一般以UTF8編碼.