in ESP-NOW test I used a structure
uint8_t broadcastAddress[] = {0x24,0x62,0xAB,0xE0,0x64,0x54}; //{ 0x84, 0xCC, 0xA8, 0x7A, 0x56, 0x6C }; //{0x24,0x62,0xAB,0xE0,0x64,0x54};
esp_now_peer_info_t peerInfo;
// test structure
struct __attribute__((packed)) Data {
int16_t seq; // sequence number
int32_t distance;
float voltage;
char text[50];
} data = { 0, 56, 3.14159, "hello test" }; // sample data
which was transmitted using
esp_now_send(broadcastAddress, (uint8_t *)&data, sizeof(data));