Libelium is offering new technical support channels, to contact with de Technical Support team to solve any issue our doubt please contact with your sales agent or visit our contact site



Post a new topicPost a reply Page 1 of 1   [ 6 posts ]
Author Message
 Post subject: header file error
PostPosted: Wed May 23, 2018 1:30 pm 

Joined: Wed May 23, 2018 1:13 pm
Posts: 3
i have a problem with your source code.

the error message is below :
C:\Users\Bombpi\Documents\Arduino\practice\practice.ino:26:20: fatal error: SX1272.h: No such file or directory

#include "SX1272.h"

compilation terminated




I followed your tutorial and downloaded using the " Download the SX1272 Libraries for Arduino" link.
and uncompress the zip files and then, add the "arduino-api" folder and "arduinoLoRa" folder to "libraries" folder.

What can i do for using your libraries?

P.S. after uncompressing the zip files, there was no "SX1272.h" header file in two folders.....


Top
 Profile  
 
 Post subject: Re: header file error
PostPosted: Thu May 24, 2018 9:15 am 

Joined: Mon Sep 28, 2009 12:06 pm
Posts: 11366
Hi,

There is an error in the tutorial. The name of the library is arduinoLoRa.h instead of WaspSX1272.h.
Code:
#include "arduinoLoRa.h"


Let us know if it solves the problem.
Regards


Top
 Profile  
 
 Post subject: Re: header file error
PostPosted: Thu May 24, 2018 1:14 pm 

Joined: Wed May 23, 2018 1:13 pm
Posts: 3
Hi,
i replace the "SX1272.h" to "arduinoLoRa.h" in source code.(at Arduino tutorial)
however, there was a new error about header file. the error is below.


fatal error:../SPI/SPI.h:No such file or directory
#include "../SPI/SPI.h"



What can i do for this error?


Top
 Profile  
 
 Post subject: Re: header file error
PostPosted: Fri May 25, 2018 9:14 am 

Joined: Mon Sep 28, 2009 12:06 pm
Posts: 11366
Hi,

Please go to arduinoLoRa.cpp file and comment out the following line
//#include "../SPI/SPI.h"

Then in your code you must include the following libraries.
Code:
// Include the SX1272 and SPI library:
#include "arduinoLoRa.h"
#include <SPI.h>


Regards


Top
 Profile  
 
 Post subject: Re: header file error
PostPosted: Wed May 30, 2018 7:47 am 

Joined: Wed May 23, 2018 1:13 pm
Posts: 3
Thanks for your answer.
but, There was that comment(#include "../SPI/SPI.h") already in my "arduinoLoRa.cpp" file.

Can you tell me where the comment has to add in detail?
My project deadline is short. so, tell me the answer as soon as possible, please.....


Top
 Profile  
 
 Post subject: Re: header file error
PostPosted: Wed May 30, 2018 9:59 am 

Joined: Mon Sep 28, 2009 12:06 pm
Posts: 11366
Hi,

Could you please share with us the complete compiling error?

Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 6 posts ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Libelium theme based on 610nm Style by Daniel St. Jules of http://www.gamexe.net


© Libelium Comunicaciones Distribuidas S.L. | Terms of use.