Hi all.
I am ready to end it all......
I have been trying to get the standard helloworld.rx / tx up and running without success.
tx. sending...... failed.
rx. RF24Network/examples/helloworld_rx/ (prints this message every 1/2 second)
even basic RF24 library isn't working for me, same messages.
Followed instructions to the letter, what am i doing wrong?
helloworld_tx.ino (1.84 KB)
helloworld_rx.ino (1.53 KB)
.I am but a novice, this is the only source for the repearing rx message but it is in the void setup.
Serial.println("RF24Network/examples/helloworld_rx/");
how?
#include <RF24Network.h>
#include <RF24.h>
#include <SPI.h>
// nRF24L01(+) radio attached using Getting Started board
RF24 radio(9,10);
// Network uses that radio
RF24Network network(radio);
// Address of our node
const uint16_t this_node = 0;
// Address of the other node
const uint16_t other_node = 1;
// Structure of our payload
struct payload_t
{
unsigned long ms;
unsigned long counter;
};
void setup(void)
{
Serial.begin(57600);
Serial.println("RF24Network/examples/helloworld_rx/");
SPI.begin();
radio.begin();
network.begin(/channel/ 90, /node address/ this_node);
}
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;
payload_t payload;
network.read(header,&payload,sizeof(payload));
Serial.print("Received packet #");
Serial.print(payload.counter);
Serial.print(" at ");
Serial.println(payload.ms);
}
}
// vim:ai:cin:sts=2 sw=2 ft=cpp
Of code in setup() is repeating your sketch is crashing and causing a reset. Perhaps your radio is drawing too much power?