Here:
if(radio.write(msg, sizeof(int)))
{
Serial.println(msg[0]);
}
else
{
Serial.println("Failed!");
}
It looks like the first packet is sent - radio.write() returns true and my Pi receives a packet - and for all the rest (after the first delay) radio.write() is false - and Pi doesn't receive anything.