2017-02-24 24 views
1

我從here重寫的程序和與Adafruit的BNO055程序結合它,以便讀取上的Android應用我上的MITs應用所做的校準數據發明者。CurieBLE:/ble_service/ble_protocol.h:沒有這樣的文件或目錄

,我發現了以下錯誤:

C:\Program Files 
(x86)\Arduino\libraries\CurieBLE\src/BLECommon.h:26:54: fatal error: 
../src/services/ble_service/ble_protocol.h: No such file or directory 

通過文件夾尋找(包括我的電腦並從github上)我可以找到BLECommon,但沒有'ble_service' ...雖然有一個'BLEService' 。我也無法在任何地方找到'ble_protocol.h'

任何人都可以幫助我理解我可能做錯了什麼,以及我如何才能糾正這個錯誤?

+0

您是否首先爲**英特爾居里板**遵循這些[安裝說明](https://www.arduino.cc/en/Guide/Arduino101)? –

+1

我剛剛意識到問題可能是我沒有使用居里板(愚蠢,我知道)。我正在使用Arduino Uno,並打算稍後在Adafruid Feather板上使用代碼。 有關使用SPI BLE的易用代碼的任何建議?我需要用簡單的浮點數組發送代碼,因此我知道如何期待數據進入Android應用程序(MIT App Inventor非常簡單)。 – gr8flux

回答

0

我正在嘗試做類似的事情 - 在Gitlab中使用PlatformIO編譯器作爲我的CI過程的一部分。我收到編譯時讓我去尋找丟失的文件類似的錯誤,並發現他們在這裏(注意,我用的linux所以相應地調整適用於Windows):

/.arduino15/packages/Intel/hardware/arc32/2.0.2/system/libarc32_arduino101/framework/src/services/ble_service 

我感動ble_service文件夾到CurieBLE庫文件夾(在項目文件夾),所以現在我的項目文件夾結構爲:

|--lib 
| |--CurieBLE 
| | |--src 
| | | |--bluetooth 
| | | | |[contents of the bluetooth folder from .arduino15/packages/Intel/hardware/arc32/2.0.2/system/libarc32_arduino101/drivers] 
| | | |--services 
| | | | |--ble_service 
| | | | | |[contents of the ble_service folder from above path] 
| | | |[rest of the CurieBLE folder contents] 
|--src 
| |- main.cpp 
|- platformio.ini 

我還是通過其他錯誤,努力讓PlatformIO的工作,但此至少固定缺少的庫/文件。

相關問題