ESP-NOW reciver from Arduino NRF24L01

Hi I searched on internet about ESP-NOW, and i discovered that this protocol of the esp32 can receive messages from an Arduino using NRF24L01.
But nobody explain how to code the receiver (the esp32 with the protocol ESP-NOW).
I have writed the code for the transmitter (the Arduino).

//#include <Wire.h>
#include <SPI.h>
#include "RF24.h"

RF24 myRadio (9, 10); //CE = D9 | CS = D10
byte addresses[][6] = {"0"};

struct package{ //Declare struct with datas
 String toSend = "Hello!";
};
typedef struct package Package;
Package data; //declare "data" to interact with the struct

//----------------------------------------------------------------------------

void setup(){
  Serial.begin(9600);
  delay(1000);
  myRadio.begin();
  myRadio.setChannel(115);
  myRadio.setPALevel(RF24_PA_MAX); //RF24_PA_MAX -> High and Low signal| RF24_PA_MIN -> No signal | RF24_PA_HIGH -> Only High signal | RF24_PA_LOW -> Only Low signal
  myRadio.setDataRate(RF24_250KBPS);
  myRadio.openWritingPipe(addresses[0]);
  delay(1000);
}

void loop(){
  delay(2000);
  myRadio.write(&data, sizeof(data)); //Send the struct with all datas
}

Now, how can i set my esp32 to receive the struct? i really don't now...
Thank very much.

Please post a link to where you found this

Surely this would be part of the details that the site you have found would contain

I note that in the code you posted there is no mention of the MAC address of the target ESP32, which is a fundamental part of ESP-NOW. Indeed, the code looks like a perfectly normal NRF24 transmitter

I didn't know about to set the mac for the transmitter (just to remember the trasm is from the Arduino).
Here are the link that i tried to follow:
ESP8266 with ESP-NOW as an alternative to nRF24L01+

Connect NRF24L01 to ESP32

Search from YouTube

Video from Youtube

In your link

The TO speaks of ESP-NOW as an alternative for nRF24 it is

NOT

about how to make an ESP32 and an nRF24-module send/receive to each other

the way before ESP-NOW to use nRF24<--------->nRF24
This thread talks about

ESP-NOW<----------->ESP-NOW as a replacement for nRF24<--------->nRF24

both use 2,4 GHz. But beyond the same radio-frequency there are no more similarities

quoting from this thread
discovered the ESP-NOW system which allows ESP8266 modules to be used in a peer-to-peer system similar to an nRF24

he writes about modules
multiple ESP-NOW-modules
form a similar not a compatible peer-to-peer system.
best regards Stefan

None of the links you posted have anything to do with using ESP-NOW with NRF24. At best they show how ESP-NOW can be used instead of NRF24

Ah, sorry, I did not understand that ESP-NOW only works with another ESP-NOW, now everything is clearer to me.
I can only use:
ESP-NOW <---> ESP-NOW
can't use:
ESP-NOW <---> NRF24L01

A possible solution would be to connect another nrf24l01 module to my ESP32, so that I can communicate (therefore receive) from my Arduino which transmits with an nrf24l01?

This could work.
Though both nRF24 and ESP-NOW use the same radio-frequency
you would have to make sure that their channel-frequencies are "wide" from each other.

And as an ESP32 can do anything an Arduino can do the only reason for combining an arduino with an nRF24 would be an existing and running project or a project that uses an Arduino Mega with his lots of IO-pins for creating high-frequency-PWM-signals or other more special input-capture-features.

For lower PWM-signals or simple on/off-switching an ESP32 with IO-expander-chips and a ADC-module will do the job and offer even more FLASH and RAM than an Arduino Mega does

best regards Stefan

Ok thanks, i will program the receiver, and i will publish here the code!