Transmitting non-text over NRF24L01 pipe

I am working on a project that will require wireless transmission of both text and data. From my understanding a packet has to be created and filled before it can be sent. The example code I have works when transmitting text, because it is sending a char array with 32 indexed variables. Transmitting a number variable does compile but does not transmit correctly. I have tried looking for ways to send a single number in a single packet but I have not reached any valuable conclusions.

Here is the code for the transmitter:

/*
* Arduino Wireless Communication Tutorial
*     Example 1 - Transmitter Code
*                
* by Dejan Nedelkovski, www.HowToMechatronics.com
* 
* Library: TMRh20/RF24, https://github.com/tmrh20/RF24/
*/
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
RF24 radio(7, 8); // CNS, CE
const byte address[6] = "00001";
void setup() {
  radio.begin();
  radio.openWritingPipe(address);
  radio.setPALevel(RF24_PA_MIN);
  radio.stopListening();
}
void loop() {
  static unsigned long count = 0;
  count++;                                          // Need to transmit this

  const char text[] = "Hello World";
  radio.write(&text, sizeof(text));
  delay(1000);
}

You can see in the loop that I have the unsigned long ‘count’ that I would like to transmit.

Here is the code for the receiver:

/*
* Arduino Wireless Communication Tutorial
*       Example 1 - Receiver Code
*                
* by Dejan Nedelkovski, www.HowToMechatronics.com
* 
* Library: TMRh20/RF24, https://github.com/tmrh20/RF24/
*/
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
RF24 radio(7, 8); // CNS, CE
const byte address[6] = "00001";
void setup() {
  Serial.begin(9600);
  radio.begin();
  radio.openReadingPipe(0, address);
  radio.setPALevel(RF24_PA_MIN);
  radio.startListening();
}
void loop() {
  if (radio.available()) {
    char text[32] = "";
    radio.read(&text, sizeof(text));
    Serial.println(text);
  }
}

The nRF24 has no idea what the data represents. It just sends bytes.

If you look at the examples in this Simple nRF24L01+ Tutorial you will see that some of the data happens to be text and in other cases it is bytes representing number variables.

The only requirement is that the data type on the receiving end matches the data type on the transmitting end. Note. also, the the purpose of using sizeof() is to tell the nRF24 how many bytes are being sent. For example an int will be 2 bytes.

...R