WiFi Fundamentals

I think that I have found the error,
void OnDataRecv(const uint8_t * mac
should be:
void OnDataRecv(const esp_now_recv_info_t * mac

It all works fine with this amendment.

Now to figure out how to use it.