Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined reference in Network_Ping_Sleep.ino Example #34

Closed
PRONOVATEK opened this issue Dec 19, 2014 · 2 comments
Closed

Undefined reference in Network_Ping_Sleep.ino Example #34

PRONOVATEK opened this issue Dec 19, 2014 · 2 comments
Labels

Comments

@PRONOVATEK
Copy link

hi, I received the following error message when compiling the example of node sleep on a Arduino UNO:

Arduino: 1.5.8 (Mac OS X), Placa:"Arduino Uno"

Network_Ping_Sleep.cpp.o: In function setup': /Network_Ping_Sleep.ino:104: undefined reference toRF24Network::setup_watchdog(unsigned char)'
Network_Ping_Sleep.cpp.o: In function loop': /Network_Ping_Sleep.ino:139: undefined reference toRF24Network::sleepNode(unsigned int, int)'
collect2: error: ld returned 1 exit status
compile error

I copy the library RF24Network.h on Contents/Java/libraries/RF24Nework-master folder into Arduino.app

unaware that marks this mistake in advance appreciate your advice on this error.

@lnxbil
Copy link
Contributor

lnxbil commented Jan 14, 2015

Only the header will not help. RF24Network should bring its own .h and .c files. I don't know it the Arduino IDE is picky, but you can rename it if RF24Network without the -master suffix , maybe that'll do it.

@TMRh20
Copy link
Member

TMRh20 commented Jan 23, 2015

The RF24Network examples need a lot of work, this one in particular. I thought I had commented on this, but sleep mode needs to be enabled in the RF24Network_config.h file. I see the example still refers to and old method of slleeping I had been experimenting with too, so that needs to be cleaned up or removed as well. This may happen soon, since the DEV lib is now pretty stable and has been cleaned up a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants