nrf2401 error compiling example

hi
i work with an arduino nano and a nrf2401
i try to run the example code of RF24Network-master library but nothing
any idea what is going wrong?

this is the error:

C:\Users\ilias\Documents\Arduino\libraries\RF24Network-master\RF24Network.cpp: In member function 'uint16_t RF24Network::read(RF24NetworkHeader&, void*, uint16_t)':
C:\Users\ilias\Documents\Arduino\libraries\RF24Network-master\RF24Network.cpp:694:12: error: 'rf24_min' was not declared in this scope
  maxlen = rf24_min(maxlen,bufsize);
           ^~~~~~~~
C:\Users\ilias\Documents\Arduino\libraries\RF24Network-master\RF24Network.cpp:694:12: note: suggested alternative: 'fmin'
  maxlen = rf24_min(maxlen,bufsize);
           ^~~~~~~~
           fmin
C:\Users\ilias\Documents\Arduino\libraries\RF24Network-master\RF24Network.cpp: In member function 'bool RF24Network::write(RF24NetworkHeader&, const void*, uint16_t, uint16_t)':
C:\Users\ilias\Documents\Arduino\libraries\RF24Network-master\RF24Network.cpp:794:25: error: 'rf24_min' was not declared in this scope
 uint16_t fragmentLen = rf24_min((uint16_t)(len-offset),max_frame_payload_size);
                        ^~~~~~~~
C:\Users\ilias\Documents\Arduino\libraries\RF24Network-master\RF24Network.cpp:794:25: note: suggested alternative: 'fmin'
 uint16_t fragmentLen = rf24_min((uint16_t)(len-offset),max_frame_payload_size);
                        ^~~~~~~~
                        fmin
C:\Users\ilias\Documents\Arduino\libraries\RF24Network-master\RF24Network.cpp:827:16: error: 'class RF24' has no member named 'txStandBy'
    ok = radio.txStandBy(txTimeout);
               ^~~~~~~~~
C:\Users\ilias\Documents\Arduino\libraries\RF24Network-master\RF24Network.cpp: In member function 'bool RF24Network::write(uint16_t, uint8_t)':
C:\Users\ilias\Documents\Arduino\libraries\RF24Network-master\RF24Network.cpp:974:11: error: 'class RF24' has no member named 'txStandBy'
    radio.txStandBy(txTimeout);
          ^~~~~~~~~
C:\Users\ilias\Documents\Arduino\libraries\RF24Network-master\RF24Network.cpp: In member function 'bool RF24Network::write_to_pipe(uint16_t, uint8_t, bool)':
C:\Users\ilias\Documents\Arduino\libraries\RF24Network-master\RF24Network.cpp:1083:14: error: 'class RF24' has no member named 'writeFast'; did you mean 'write'?
  ok = radio.writeFast(frame_buffer, frame_size,0);
             ^~~~~~~~~
             write
C:\Users\ilias\Documents\Arduino\libraries\RF24Network-master\RF24Network.cpp:1086:16: error: 'class RF24' has no member named 'txStandBy'
    ok = radio.txStandBy(txTimeout);

it is difficult to tell much from error messages - could you upload the source code?

this is the code
is the example of the library

/*
 Copyright (C) 2012 James Coliz, Jr. <maniacbug@ymail.com>

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 version 2 as published by the Free Software Foundation.
 
 Update 2014 - TMRh20
 */

/**
 * Simplest possible example of using RF24Network,
 *
 * RECEIVER NODE
 * Listens for messages from the transmitter and prints them out.
 */

#include <RF24Network.h>
#include <RF24.h>
#include <SPI.h>


RF24 radio(7,8);                // nRF24L01(+) radio attached using Getting Started board 

RF24Network network(radio);      // Network uses that radio
const uint16_t this_node = 00;    // Address of our node in Octal format ( 04,031, etc)
const uint16_t other_node = 01;   // Address of the other node in Octal format

struct payload_t {                 // Structure of our payload
  unsigned long ms;
  unsigned long counter;
};


void setup(void)
{
  Serial.begin(115200);
  Serial.println("RF24Network/examples/helloworld_rx/");
 
  SPI.begin();
  radio.begin();
  network.begin(/*channel*/ 90, /*node address*/ this_node);
}

void loop(void){
  
  network.update();                  // Check the network regularly

  
  while ( network.available() ) {     // Is there anything ready for us?
    
    RF24NetworkHeader header;        // If so, grab it and print it out
    payload_t payload;
    network.read(header,&payload,sizeof(payload));
    Serial.print("Received packet #");
    Serial.print(payload.counter);
    Serial.print(" at ");
    Serial.println(payload.ms);
  }
}

the code of post #2 compiles OK using my Arduino IDE target arduino nano

have you installed the RF24Network library

and the RF24 library

looks as though you may have used incompatible libraries

An updated version of the maniacbug RF24 library was created by TMRh20 but, unfortunately, he did not change the name of the library so the two of them can be confused.

I suggest you use the newer TMRh20 library.

To avoid any confusion for the Arduino IDE it would probably be a good idea to delete all versions of the RF24 library and the install the correct version.

...R

hi
i delete all libraries and install the RF24 library
and from this link RF24Network - Arduino Libraries
install RF24Network-1.0.12 version still nothing
i have 1.8.13 arduino ide

ciric:
install RF24Network-1.0.12 version still nothing

What library is your program expecting? If the program was written for the Maniacbug library you may need some modifications to the program to enable it to work with the TMRh20 library.

Have you tried to get at least one of the library examples working?

...R

i install the RF24Network(1.0.12 version) Author TMRh20
i go to run the example from this library (hello world rx)

/*
 Copyright (C) 2012 James Coliz, Jr. <maniacbug@ymail.com>

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 version 2 as published by the Free Software Foundation.
 
 Update 2014 - TMRh20
 */

/**
 * Simplest possible example of using RF24Network,
 *
 * RECEIVER NODE
 * Listens for messages from the transmitter and prints them out.
 */

#include <RF24Network.h>
#include <RF24.h>
#include <SPI.h>


RF24 radio(7,8);                // nRF24L01(+) radio attached using Getting Started board 

RF24Network network(radio);      // Network uses that radio
const uint16_t this_node = 00;    // Address of our node in Octal format ( 04,031, etc)
const uint16_t other_node = 01;   // Address of the other node in Octal format

struct payload_t {                 // Structure of our payload
  unsigned long ms;
  unsigned long counter;
};


void setup(void)
{
  Serial.begin(115200);
  Serial.println("RF24Network/examples/helloworld_rx/");
 
  SPI.begin();
  radio.begin();
  network.begin(/*channel*/ 90, /*node address*/ this_node);
}

void loop(void){
  
  network.update();                  // Check the network regularly

  
  while ( network.available() ) {     // Is there anything ready for us?
    
    RF24NetworkHeader header;        // If so, grab it and print it out
    payload_t payload;
    network.read(header,&payload,sizeof(payload));
    Serial.print("Received packet #");
    Serial.print(payload.counter);
    Serial.print(" at ");
    Serial.println(payload.ms);
  }
}

this is the gode
but i can’t compile
this is the error

C:\Users\ilias\Documents\Arduino\libraries\RF24Network-1.0.12\RF24Network.cpp:763:16: error: 'class RF24' has no member named 'txStandBy'
     ok = radio.txStandBy(txTimeout);
                ^~~~~~~~~
C:\Users\ilias\Documents\Arduino\libraries\RF24Network-1.0.12\RF24Network.cpp: In member function 'bool RF24Network::write(uint16_t, uint8_t)':
C:\Users\ilias\Documents\Arduino\libraries\RF24Network-1.0.12\RF24Network.cpp:906:11: error: 'class RF24' has no member named 'txStandBy'
     radio.txStandBy(txTimeout);
           ^~~~~~~~~
C:\Users\ilias\Documents\Arduino\libraries\RF24Network-1.0.12\RF24Network.cpp: In member function 'bool RF24Network::write_to_pipe(uint16_t, uint8_t, bool)':
C:\Users\ilias\Documents\Arduino\libraries\RF24Network-1.0.12\RF24Network.cpp:1012:14: error: 'class RF24' has no member named 'writeFast'; did you mean 'write'?
   ok = radio.writeFast(frame_buffer, frame_size,0);
              ^~~~~~~~~
              write
C:\Users\ilias\Documents\Arduino\libraries\RF24Network-1.0.12\RF24Network.cpp:1015:16: error: 'class RF24' has no member named 'txStandBy'
     ok = radio.txStandBy(txTimeout);
                ^~~~~~~~~
exit status 1
Error compiling for board Arduino Nano.

ciric:
i install the RF24Network(1.0.12 version) Author TMRh20
i go to run the example from this library (hello world rx)

[....]

this is the gode
but i can't compile
this is the error

This is confusing. If you got the program to run then there cannot have been any compiler errors.

What program is producing the compiler errors? Was that program designed for the TMRh20 version of the RF24 library?

...R

This is confusing. If you got the program to run then there cannot have been any compiler errors.

i don't run any program
i just try to compile the example code of the library but nothing

to your arduino ide you can compile the follow example?

/*
 Copyright (C) 2012 James Coliz, Jr. <maniacbug@ymail.com>

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 version 2 as published by the Free Software Foundation.
 
 Update 2014 - TMRh20
 */

/**
 * Simplest possible example of using RF24Network,
 *
 * RECEIVER NODE
 * Listens for messages from the transmitter and prints them out.
 */

#include <RF24Network.h>
#include <RF24.h>
#include <SPI.h>


RF24 radio(7,8);                // nRF24L01(+) radio attached using Getting Started board

RF24Network network(radio);      // Network uses that radio
const uint16_t this_node = 00;    // Address of our node in Octal format ( 04,031, etc)
const uint16_t other_node = 01;   // Address of the other node in Octal format

struct payload_t {                 // Structure of our payload
  unsigned long ms;
  unsigned long counter;
};


void setup(void)
{
  Serial.begin(115200);
  Serial.println("RF24Network/examples/helloworld_rx/");
 
  SPI.begin();
  radio.begin();
  network.begin(/*channel*/ 90, /*node address*/ this_node);
}

void loop(void){
 
  network.update();                  // Check the network regularly

 
  while ( network.available() ) {     // Is there anything ready for us?
   
    RF24NetworkHeader header;        // If so, grab it and print it out
    payload_t payload;
    network.read(header,&payload,sizeof(payload));
    Serial.print("Received packet #");
    Serial.print(payload.counter);
    Serial.print(" at ");
    Serial.println(payload.ms);
  }
}

what ide you have?
and what libraries?

ciric:
i don't run any program
i just try to compile the example code of the library but nothing

You also need to have installed TMRh20's RF24 library. It is in that that radio.txStandBy is defined.

...R

ok i instal the library and all is good
thank you for your help