RF24Network and nRF24L01+ (send a string)

I'm new to this myself, but having a similar problem.

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.

char * sendData = "1234567890";
void loop(void)
{
  // Pump the network regularly
  network.update();

  // If it's time to send a message, send it!
  unsigned long now = millis();
  if ( now - last_sent >= interval  )
  {
    last_sent = now;

    Serial.print("Sending...");
    RF24NetworkHeader header(/*to node*/ other_node);
    bool ok = network.write(header,sendData,strlen(sendData));
    Serial.print("Sending - ");
    Serial.print(sendData);
    Serial.print(" - ");
    Serial.print(strlen(sendData));
    Serial.print(" bytes long. ");
    Serial.println();
    if (ok)
      Serial.println("ok.");
    else
      Serial.println("failed.");
  }

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.

char * receivedData = "           "; //see how I have to give it a blank string. it doesn't work without that.
void loop(void)
{
  // Pump the network regularly
  network.update();

  // Is there anything ready for us?
  while ( network.available() )
  {
    // If so, grab it and print it out
    RF24NetworkHeader header;;
    network.read(header,receivedData,strlen(receivedData);
    Serial.print("Data Received - ");
    Serial.print(receivedData);
    Serial.print(" - Size ");
    Serial.print(strlen(receivedData));
    Serial.println();
  }
}

This should be so simple, but I'm having a severe headache now.