Pages: [1]   Go Down
Author Topic: RF24 network multi node sketch request  (Read 902 times)
0 Members and 1 Guest are viewing this topic.
UK
Offline Offline
Jr. Member
**
Karma: 0
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Dee Why NSW
Offline Offline
Edison Member
*
Karma: 47
Posts: 2265
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

UK
Offline Offline
Jr. Member
**
Karma: 0
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 159
Posts: 2916
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

UK
Offline Offline
Jr. Member
**
Karma: 0
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
Logged

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 159
Posts: 2916
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: