So I just order some nRF24L01+ modules and thought I’d give @Robin2’s Tutorial a read. Very straight forward, nice job. But, something a little puzzling caught my eye:
The first example of TX code has:
char dataToSend[10] = "Message 0";
Makes sense to send a char array. But, invoking the library’s send() method shows:
I’ve been programming in ‘C’ for more than 30 years and have always used the former of these, but am willing to learn something new (to me). So, do ‘arrayName’ and ‘&arrayName’ resolve to the same thing when used as function arguments?
Probably something to do with backward/forward/sideways compatibility. Also, doing as Robin suggests helps down the road when debugging as you know what it is you're passing.