TShopping

標題: nRF52840 mesh如何開始編碼? [打印本頁]

作者: woff    時間: 2020-9-23 15:45
標題: nRF52840 mesh如何開始編碼?
就算是對於bluetooth BLE (一對一)熟悉的工程師,
看到bluetooth mesh (bluetooth 5) 也是無從著手
因為bluetooth 5是新的一套產物(一對一、一對多、多對多),比BLE複雜許多
就當重新學習新的事物吧!
因為筆者是使用ANDROID
先下載原始碼來看看
https://github.com/NordicSemiconductor/Android-nRF-Mesh-Library


至於官方提供範例nrf52840 mesh部分,有興去的人可先看看筆者實測這幾篇
入門教學:建構nrf52840 Bluetooth Mesh網路 (1)
入門教學: 建構nrf52840 Bluetooth Mesh網路 (2)

下載好原始碼後,Import到Android Studio
編譯時,出現錯誤

  1. C:\Users\Administrator\.gradle\caches\transforms-2\files-2.1\7bac7d3c31351a70c3f54406bfe30dec\material-1.3.0-alpha01\res\values\values.xml:1084:5-1095:11: AAPT: error: style attribute 'android:attr/dialogCornerRadius' not found.
複製代碼


打開gradle文件:




因為MESH是比較新核心技術,目標SDK版本 targetSdkVersion 29所以把
  1. compileSdkVersion 27
複製代碼
改成
  1. compileSdkVersion 29
複製代碼
編譯完成

文章出處:網頁設計,網站架設 ,網路行銷,網頁優化,SEO - NetYea 網頁設計





歡迎光臨 TShopping (http://www.tshopping.com.tw/) Powered by Discuz! X3.2