Go Down

Topic: RF24 network multi node sketch request (Read 1 time) previous topic - next topic

Jimster

I'm trying to get my head around the RF24 library. Does anyone have a complete working sketch of a multi node netowork which I can experiment hacking around with?

Thanks

Jim

Nick_Pyner

http://maniacbug.github.com/RF24Network/index.html

Jimster

Thanks Nick, I've tried copying and pasting from the examples, but I get these errors when compiling:

C:\Users\Jimbos\Documents\Arduino\arduino-1.0.3\libraries\RF24master/RF24Network.h:1: error: stray '\357' in program
C:\Users\Jimbos\Documents\Arduino\arduino-1.0.3\libraries\RF24master/RF24Network.h:1: error: stray '\273' in program
C:\Users\Jimbos\Documents\Arduino\arduino-1.0.3\libraries\RF24master/RF24Network.h:1: error: stray '\277' in program

So I guess I'm missing something so was hoping to get a working sketch zipped up, or can someone tell me where I'm going wrong.

oric_dan

It shows you right there which file the errors are in = RF24Network.h. Go look inside
and see what's in there.

Also, what you're actually "supposed" to do is install 3rd party libraries in the Arduino
sketch directory in subdirectory \libraries. See,
http://arduino.cc/en/Guide/Libraries

Jimster

I've spent days on this, and only just worked out that the RF24network libary and RF24 is not the same. Feel more than a bit silly, but sorted now!

oric_dan

I have problems like that too. There are so many different RF modules and libraries
with similar names anymore, I get them confused. Also, unfortunately most of the
libraries take some mucking around to get to work properly, and nothing ever seems
to work properly the first time. So problem library and unmatched module are a double
whammy.

Go Up