增加記錄api,此函數(shù)為擴(kuò)展函數(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:對(duì)于TNF=2或者TNF=4,協(xié)議寫(xiě)明Mime數(shù)據(jù)類(lèi)型或者外部數(shù)據(jù)類(lèi)型,
Typelen為類(lèi)型的字節(jié)數(shù)。
Type:類(lèi)型的數(shù)據(jù)首地址。
Uri:對(duì)于TNF=1,對(duì)應(yīng)的uri字節(jié),如果TNF=1, 此函數(shù)與AddRecord功能一致。
sLen:記錄內(nèi)容的長(zhǎng)度.
S:記錄的內(nèi)容, 對(duì)于TNF=1,一般以UTF8編碼.
