I'm trying to comunicate with two nRF24L01+ using the library read on the following site:

https://maniacbug.wordpress.com/2012/03/30/rf24network/

The example in the library works: (http://maniacbug.github.com/RF24Network/meshping_8pde-example.html). Well, I cannot fully understand all the code, ok... I'll learn it Meanwhile I've a problem with a part of it:

Parameters:[in,out]headerThe header (envelope) of this message. The critical thing to fill in is the to_node field so we know where to send the message. It is then updated with the details of the actual header sent.messagePointer to memory where the message is locatedlenThe size of the messageReturns:Whether the message was successfully received

// The 'T' message that we send is just a ulong, containing the time unsigned long message = millis(); printf_P(PSTR("---------------------------------\n\r")); printf_P(PSTR("%lu: APP Sending %lu to 0%o...\n\r"),millis(),message,to); return network.write(header,&message,sizeof(unsigned long));}

/** * Handle a 'T' message * * Add the node to the list of active nodes */void handle_T(RF24NetworkHeader& header){ // The 'T' message is just a ulong, containing the time unsigned long message; network.read(header,&message,sizeof(unsigned long)); printf_P(PSTR("%lu: APP Received %lu from 0%o\n\r"),millis(),message,header.from_node);

// If this message is from ourselves or the base, don't bother adding it to the active nodes. if ( header.from_node != this_node || header.from_node > 00 ) add_node(header.from_node);}

// The 'T' message that we send is just a ulong, containing the time unsigned long message = millis(); printf_P(PSTR("---------------------------------\n\r")); printf_P(PSTR("%lu: APP Sending %lu to 0%o...\n\r"),millis(),message,to);

Have pleasure working with these marvellous modules that are NRF24. I use them until 80 meters far and it works great !

Actually I'm using these modules (I have 6 of them, 2 in test) without external antenna, downgraded to 250KB speed.Could you explain me a little bit how have you designed your network?I would like to have a central station that could receive sensor status from the leaves (and this now works) but the same time that could send messages to them in case I would like to turn on/off a relay or whatever.

With your 'fix' above, it appears you are running the TX and RX on the same MCU? If so then aren't you bypassing the RX anyway and just printing out the myString char that you defined globally as 'hello'?

I'm having a similar issue, where I seem to be having trouble with what should be the simplest thing, sending a string.

I have one MCU as TX and the other as RX. I'm attempting to send a string and it just doesn't work how I'd expect.

At the RX node I find that I get nothing unless I define the receivedData as a blank string, i.e. 10 spaces. That won't adapt to whatever string I happen to send though. If I don't set receivedData to something at the start then I get only 1 or 2 characters through and usually not what I'm expecting.