
Now, to actually send the data we are using
the esp_now_send function — another line I
didn’t see explained very well in many tutorials.
The function takes three parameters: an
address, a pointer to the data location, and the
size of the data. We might be used to passing
the variable myData directly to the function,
but that’s not exactly how this function works!
We’ve already registered the first parameter
with esp_now_add_peer, so we can pass the
broadcastAddress variable.
The next parameter is a dereferenced pointer.
To keep it simple, a pointer indicates a location in
memory, and is provided by the address operator
& in C. The (uint8_t*) ...