well i know i am seeing this post and replying after a year but this could help others hence i am posting it as it did to me in times i was learning and still am.
well according you clearly don't understand or don't see what the others have said .By seeing the example even and after everyone said you to correct the code you can't see your code is wrong here is the right one .
//transmitter_ASC basic
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
RF24 radio(6,7);
const byte rxAddr[6] = "00001";
const int analogIn = A0; //ASC758 connection
int mVperAmp = 20; // scale factor
int ACSoffset = 2500; //see bi directional offset
int RawValue = 0;
double Voltage = 0;
double Amps = 0;
void setup()
{
Serial.begin(9600);
radio.begin();
radio.setRetries(15, 5);//time,re tries
radio.openWritingPipe(rxAddr);
radio.stopListening();
}
void loop()
{
RawValue = analogRead(analogIn);
Voltage =(RawValue/1023.0)*5000; //gets mV
Amps =((Voltage-ACSoffset)/mVperAmp);
Serial.print(Amps);
const char text[] = "Hello World";
radio.write(&text, sizeof(text)); //check ())- its correct
delay(50);
radio.write(&Amps, sizeof(Amps));
delay(1000); //sends every second
}
this could work try this