新聞中心
這里有您想知道的互聯(lián)網營銷解決方案
創(chuàng)新互聯(lián)小程序教程:微信小程序APINFC·獲取NFC實例
NFCAdapter wx.getNFCAdapter()
基礎庫 2.11.2 開始支持,低版本需做 兼容處理。
獲取 NFC 實例
返回值
NFCAdapter
NFC 實例
錯誤
| 錯誤碼 | 錯誤信息 | 說明 |
|---|---|---|
| 13000 | 設備不支持NFC | |
| 13001 | 系統(tǒng)NFC開關未打開 | |
| 13010 | 未知錯誤 | |
| 13019 | user is not authorized | 用戶未授權 |
| 13011 | invalid parameter | 參數(shù)無效 |
| 13012 | parse NdefMessage failed | 將參數(shù)解析為NdefMessage失敗 |
| 13021 | NFC discovery already started | 已經開始NFC掃描 |
| 13018 | NFC discovery has not started | 嘗試在未開始NFC掃描時停止NFC掃描 |
| 13022 | Tech already connected | 標簽已經連接 |
| 13023 | Tech has not connected | 嘗試在未連接標簽時斷開連接 |
| 13013 | NFC tag has not been discovered | 未掃描到NFC標簽 |
| 13014 | invalid tech | 無效的標簽技術 |
| 13015 | unavailable tech | 從標簽上獲取對應技術失敗 |
| 13024 | function not support | 當前標簽技術不支持該功能 |
| 13017 | system internal error | 相關讀寫操作失敗 |
| 13016 | connect fail | 連接失敗 |
文章標題:創(chuàng)新互聯(lián)小程序教程:微信小程序APINFC·獲取NFC實例
網站網址:http://m.5511xx.com/article/djsdcje.html


咨詢
建站咨詢

