Unable to connect to blynk with network.update running

Hi, i am having trouble connecting to blynk when i tried using rf24network library with blynk.

here is my code

RF24 radio(7,8);
RF24Network network(radio);

const uint16_t tempSensor = 01;
const uint16_t controller = 00;

struct payload_t
{
float temp;
};

char auth = “” ;

void setup()
{
Serial.begin(9600);
Blynk.begin(auth);

SPI.begin();
radio.begin();
network.begin(88,controller);
pinMode(4,OUTPUT);
}

BLYNK_WRITE(V0)
{
int led0 = param.asInt();
if (led0 == 1)
{
digitalWrite(4,HIGH);
}
else
{
digitalWrite(4,LOW);
}
}

void loop()
{
Blynk.run();
network.update();
}

Anyone can help me? my yun doesnt connect with network.update running in the loop

Please give us more information (hardware, wiring, etc.), and a complete sketch code…

What do you use to connect to the network? I found out when using the ENC ethernet adapter it doesn’t really work well because one of the libraries conflicts with the RF library somehow, maybe with a non working IRQ function or whatever, but I haven’t found out yet.

I haven’t looked in to it for a bit, so it may be better, but it’s probably better to use wifi with the NRF chips to connect to Blynk. There could be some interference though since they both run on the 2.4Ghz frequency.

RF24Network.h>
RF24.h>
SPI.h>
Bridge.h>
BlynkSimpleYun.h>

RF24 radio(7,8);
RF24Network network(radio);

const uint16_t tempSensor = 01;
const uint16_t controller = 00;

struct payload_t
{
float temp;
};

char auth = “” ;

void setup()
{
Serial.begin(9600);
Blynk.begin(auth);

SPI.begin();
radio.begin();
network.begin(88,controller);
pinMode(4,OUTPUT);
}

BLYNK_WRITE(V0)
{
int led0 = param.asInt();
if (led0 == 1)
{
digitalWrite(4,HIGH);
}
else
{
digitalWrite(4,LOW);
}
}

void loop()
{
Blynk.run();
network.update();

while (network.available())
{
RF24NetworkHeader header;
payload_t payload;
network.read(header,&payload,sizeof(payload));
Serial.print(“Temperature”);
Serial.println(payload.temp);
Serial.print(“C”);
}

}

this is my current sketch.
I am trying to receive msg from another.
It is working fine without blynk related library.
i am using nrf24L01+
and connected via
ce 7
csn 8
mosi 11
miso 12
sck 13

I used the onboard wifi adapter of yun to connect to the network.
Button on V0 is used to make sure i can turn on a LED connected to the yun.
I can only switch the led on when there is no network.update() in the loop

Is it possible to try it without the Wifi? I think there are some pin conflicts. E.g. make your NRF work standalone with another NRF and see if that works.

ok, i will try it when I am free and come back asap