我是Arduino的新手。當Arduino的驗證此草圖https://github.com/MediaTek-Labs/Real-Time-Bicycle-Tracking-Map-using-PubNub引發以下:Arduino:錯誤:'PubNub'未在此範圍內聲明
Build options changed, rebuilding all
BikeTracker.ino: In function 'void setup()':
BikeTracker.ino:45:5: error: 'PubNub' was not declared in this scope
BikeTracker.ino: In function 'void loop()':
BikeTracker.ino:91:14: error: 'PubNub' was not declared in this scope
我讀過的大多數答案都指向了以https://www.arduino.cc/en/Guide/Libraries有些人說這是常見的Arduino連接的問題(容易解決)後嘗試了,沒有骰子多種方法。
我也跟着PubNub客戶支持的建議(與下面的步驟列表),但無濟於事:
I got this from our hardware/IoT/embedded engineer:
You are probably not including all the libraries, or has the wrong path for them.
- When you download the source at MediaTek-Labs/Real-Time-Bicycle-Tracking-Map-using-PubNub on GitHub:
- Click .ino file and a pop up will ask if you need a new folder for the sketch – click Yes.
- Then copy the rest of the files from the source to this new folder.
- Compile it and see if you get any library path errors that you need to provide. Let me know if you require further assistance.
順便說一句,這是我的PubNub.h。希望有人可以擺脫一些燈光。
你有沒有試過編譯這個庫的例子?您在PubNub.h中更改了哪些內容? – jabujavi
是的。上面的示例。已經引用PubNub.h。 –