Data send over nrf nrf24l01 modul

Need me sent over wifi decimal number float = vb. Only received int number without decimal. This code:

#include <SPI.h>
#include <nRF24L01.h>   //Downlaod here: https://www.electronoobs.com/eng_arduino_NRF24_lib.php
#include <RF24.h>
#include <Servo.h>      //To create PWM signals we need this lybrary
#include <Wire.h> //d

const uint64_t pipeOut = 036; //d
const uint64_t pipeIn = 041;     //Remember that this code is the same as in the transmitter
RF24 radio(9, 10);  //CSN and CE pins

// The sizeof this struct should not exceed 32 bytes
struct Received_data {
  byte ch1;
  byte ch2;
  byte ch3;
  byte ch4;
  byte ch5;
  byte ch6;
  byte ch7;
};

Received_data received_data;

Servo channel_1;
Servo channel_2;
Servo channel_3;
Servo channel_4;
Servo channel_5;
Servo channel_6;
Servo channel_7;

int ch1_value = 0;
int ch2_value = 0;
int ch3_value = 0;
int ch4_value = 0;
int ch5_value = 0;
int ch6_value = 0;


void reset_the_Data() 
{
  // 'safe' values to use when NO radio input is detected
  //received_data.ch1 = 127;      //
  received_data.ch2 = 127;  //gas kada nema signala na neutralno
  received_data.ch3 = 254; //gps kanal 254 da ide nazad kad nema signala
  //received_data.ch4 = 0;
  //received_data.ch5 = 0;
  //received_data.ch6 = 0;
 
}
//d

struct MyData {
  byte throttle;
  byte yaw;
  byte pitch;
  byte roll;
  byte AUX1;
  byte AUX2;
};

MyData data;



//Inputs outputs
int battery_in = A7;                  //pin for analog in from the battery divider
//int buttons_analog_in = A6;           //Analog in from all the push buttons

//Variables
float battery_level1 = 0.0;
float vb = 0.0;



void resetData() 
{
  //This are the start values of each channal
  // Throttle is 0 in order to stop the motors
  //127 is the middle value of the 10ADC.
    
// data.throttle = 127;
  /*data.yaw = 127;
  data.pitch = 127;
  data.roll = 127;
  data.AUX1 = 0;
  data.AUX2 = 0;*/
}





//d


/**************************************************/

void setup()
{
  
  //d

 // pinMode(buttons_analog_in, INPUT);
//  pinMode(mode_in, INPUT_PULLUP);
//  pinMode(buzzer, OUTPUT);
//  digitalWrite(buzzer,LOW);

  //d
  
  
  
  //Attach the servo signal on pins from D2 to D8
  channel_1.attach(2);
  channel_2.attach(3);
  channel_3.attach(4);
  channel_4.attach(5);
  channel_5.attach(6);
  channel_6.attach(7);

  
  //We reset the received values
  reset_the_Data();

  //Once again, begin and radio configuration
  radio.begin();
  radio.setAutoAck(false);
  radio.setPALevel(RF24_PA_MIN);
  radio.setDataRate(RF24_250KBPS);  
  radio.openReadingPipe(1,pipeIn);
  radio.openWritingPipe(pipeOut);//d
  //We start the radio comunication
  resetData();//D
  radio.startListening();

}

/**************************************************/

unsigned long lastRecvTime = 0;

//We create the function that will read the data each certain time
void receive_the_data()
{
  while ( radio.available() ) {
  radio.read(&received_data, sizeof(Received_data));
  lastRecvTime = millis(); //Here we receive the data
 
}
}

/**************************************************/

void loop()
{
  battery_level1 = analogRead(battery_in) / 62; //////Voltage divider is 10k and 20K so 1/3
  vb = battery_level1 * 10; 
  delay(5);//D
  
  //Receive the radio data
  receive_the_data();

//////////This small if will reset the data if signal is lost for 1 sec.
/////////////////////////////////////////////////////////////////////////
  unsigned long now = millis();
  if ( now - lastRecvTime > 1000 ) {
    // signal lost?
    reset_the_Data();
    //Go up and change the initial values if you want depending on
    //your aplications. Put 0 for throttle in case of drones so it won't
    //fly away
  } 

  
  ch1_value = map(received_data.ch1,0,255,1000,2000);
  ch2_value = map(received_data.ch2,0,255,1000,2000);
  ch3_value = map(received_data.ch3,0,255,1000,2000);
  ch4_value = map(received_data.ch4,0,255,1000,2000);
  ch5_value = map(received_data.ch5,0,1,1000,2000);
  ch6_value = map(received_data.ch6,0,1,1000,2000);


  //Creathe the PWM signals
  channel_1.writeMicroseconds(ch1_value);  
  channel_2.writeMicroseconds(ch2_value);  
  channel_3.writeMicroseconds(ch3_value);  
  channel_4.writeMicroseconds(ch4_value);  
  channel_5.writeMicroseconds(ch5_value);  
  channel_6.writeMicroseconds(ch6_value);  
 
 //d
  //delay(5);//D
  radio.stopListening();
  
  data.AUX1     = (analogRead(battery_in)); //data.AUX1     = digitalRead(toggle_1);  5 - 80 6 126 
  data.AUX2     = (vb); // salje ispravno samo nema decimale
  radio.write(&data, sizeof(MyData));
  radio.startListening();
  //D
  
}//Loop end

The nRF24L01+ modules are NOT Wifi.

You need to post the Transmitter program as well as the Rx program - they have to work as a pair.

...R
Simple nRF24L01+ Tutorial

you assign vb to data.AUX2 which is a byte (8bit integer)

 data.AUX2     = (vb); // salje ispravno samo nema decimale
  radio.write(&data, sizeof(MyData));

make AUX2 a float?

No received float decimal number, need me rx sent to tx voltage measured on pin A7, only received like thi 9, 10, 11, no 9.2, 10.5…
This dysplay received from rx

display.setCursor(0,42);
  display.print("Leva K:");             
  display.print(vb1,1);     
  display.print("  Desna K:");  
  display.print(vb,1); //togge_1
static const unsigned char PROGMEM  my_logo[] =
{/* 

  };

 


  
const uint64_t pipeOut = 041; //IMPORTANT: The same as in the receiver!!!
const uint64_t pipeIn = 036;  //dodato
RF24 radio(9, 10); // select  CSN  pin

// The sizeof this struct should not exceed 32 bytes
// This gives us up to 32 8 bits channals
struct MyData {
  byte throttle;
  byte yaw;
  byte pitch;
  byte roll;
  byte AUX1;
  byte AUX2;
};

MyData data;



//Inputs outputs
int battery_in = A7;                  //pin for analog in from the battery divider
int buttons_analog_in = A6;           //Analog in from all the push buttons
int toggle_1 = 3; 
int toggle_2 = 2;
int throttle_in = A0;
int yaw_in = A1;
int pitch_in = A2;
int roll_in = A3;
int mode_in = 4;
int buzzer = 5;

//Variables
float vb = 0;
float vb1 = 0;
float battery_level = 0;
int throttle_fine = 0;
int yaw_fine = 0;
int pitch_fine = 0;
int roll_fine = 0;
int button_read = 0;



void resetData() 
{
 
    
  data.throttle = 127;
  data.yaw = 127;
  data.pitch = 127;
  data.roll = 127;
  data.AUX1 = 0;
  data.AUX2 = 0;
}
//dodato


struct Received_data {
  byte ch1;
  byte ch2;
  byte ch3;
  byte ch4;
  byte ch5;
  byte ch6;
  byte ch7;
};

Received_data received_data;
/*
Servo channel_1;
Servo channel_2;
Servo channel_3;
Servo channel_4;
float channel_5;
float channel_6;
float channel_7;
*/
int ch1_value = 0;
int ch2_value = 0;
int ch3_value = 0;
int ch4_value = 0;
float ch5_value = 0;
float ch6_value = 0;


void reset_the_Data() 
{
  
 
}




//dodato
void setup()
{
  if( EEPROM.read(1) != 55)
  {
    EEPROM.write(2, 127);
    EEPROM.write(3, 127);
    EEPROM.write(4, 127);
    EEPROM.write(5, 127); 
  //  EEPROM.write(6, 0);
  //  EEPROM.write(7, 1);
  //  EEPROM.write(8, 1);
  //  EEPROM.write(9, 0);    
    EEPROM.write(1, 55);
  }

  throttle_fine = EEPROM.read(2);
  yaw_fine = EEPROM.read(3);
  pitch_fine = EEPROM.read(4);
  roll_fine = EEPROM.read(5);
  //throttle_inverted = EEPROM.read(6);
  //yaw_inverted = EEPROM.read(7);
 // pitch_inverted = EEPROM.read(8);
 // roll_inverted = EEPROM.read(9);

 //dodato
//  channel_5.attach(6);
  reset_the_Data();
  //dodato 
  pinMode(buttons_analog_in, INPUT);
  pinMode(mode_in, INPUT_PULLUP);
  pinMode(buzzer, OUTPUT);
  digitalWrite(buzzer,LOW);
    
  display.begin(SSD1306_SWITCHCAPVCC, 0x3C);  // initialize with the I2C addr 0x3C (for the 128x32)  
  delay(100);
  display.clearDisplay();
  display.setTextSize(1);             //Set text size
  display.setTextColor(WHITE);        //Choose color
  display.drawBitmap(0, 0,  my_logo, 128, 64, 1);
  
  digitalWrite(buzzer,HIGH);
  delay(40);
  digitalWrite(buzzer,LOW);  
  delay(40);
  digitalWrite(buzzer,HIGH);
  delay(40);
  digitalWrite(buzzer,LOW);  

  display.display();
  delay(2000);
  
  //Start everything up
  radio.begin();
  radio.setAutoAck(false);
  radio.setPALevel(RF24_PA_MAX);
  radio.setDataRate(RF24_250KBPS);
  radio.openWritingPipe(pipeOut);
  radio.openReadingPipe(1,pipeIn);//d
  resetData();

  
}

/**************************************************/




int map_normal(int val, int lower, int middle, int upper, bool reverse)
{
  val = constrain(val, lower, upper);
  if ( val < middle )
    val = map(val, lower, middle, 0, 128);
  else
    val = map(val, middle, upper, 128, 255);
  return ( reverse ? 255 - val : val );
}

t
// the values of the outer extents and the middle of the joystick range.
int map_exponential(int val, bool reverse)
{
  val = constrain(val, 0, 1023);
  float cube = ((pow((val - 512),3)/520200) + 258.012) / 2; 
  return ( reverse ? 255 - cube : cube );
}


//d

unsigned long lastRecvTime = 0;

//We create the function that will read the data each certain time
void receive_the_data()
{
  while ( radio.available() ) {
  radio.read(&received_data, sizeof(Received_data));
  lastRecvTime = millis(); //Here we receive the data
  
}
}
//d







void loop()
{
  //battery read
  battery_level = analogRead(battery_in) / 67.331; //////Voltage divider is 10k and 20K so 1/3
if(battery_level < 6.1)
{
  if(sound)
     { 
       delay(250);
       digitalWrite(buzzer,HIGH);
       delay(250);
       digitalWrite(buzzer,LOW); 
    }
}

 
 
  


  throttle_to_send = throttle_to_send  + throttle_fine - 127;
  yaw_to_send = yaw_to_send  + yaw_fine - 127;
  pitch_to_send = pitch_to_send  + pitch_fine - 127;
  roll_to_send = roll_to_send  + roll_fine - 127;  
  
  
  data.throttle = constrain(throttle_to_send,0,255);
  data.yaw      = constrain(yaw_to_send,0,255);
  data.pitch    = constrain(pitch_to_send,0,255);
  data.roll     = constrain(roll_to_send,0,255);
  data.AUX1     = digitalRead(toggle_1);
  data.AUX2     = !digitalRead(toggle_2);

  radio.write(&data, sizeof(MyData));
//d
 radio.startListening();
 receive_the_data();

//////////This small if will reset the data if signal is lost for 1 sec.
/////////////////////////////////////////////////////////////////////////
  unsigned long now = millis();
  if ( now - lastRecvTime > 1000 ) {
    // signal lost?
    reset_the_Data();
    //Go up and change the initial values if you want depending on
    //your aplications. Put 0 for throttle in case of drones so it won't
    //fly away
  } 

  
  ch1_value = map(received_data.ch1,0,255,1000,2000);
  ch2_value = map(received_data.ch2,0,255,1000,2000);
  ch3_value = map(received_data.ch3,0,255,1000,2000);
  ch4_value = map(received_data.ch4,0,255,1000,2000);
  //ch5_value = (received_data.ch5); //ch5_value = map(received_data.ch5,0,1,1000,2000);
  //ch6_value = (received_data.ch6);


  //Creathe the PWM signals
  //channel_1.writeMicroseconds(ch1_value);  
  //channel_2.writeMicroseconds(ch2_value);  
  //channel_3.writeMicroseconds(ch3_value);  
  //channel_4.writeMicroseconds(ch4_value);  
  //channel_5.writeMicroseconds(ch5_value);  
 // channel_6.writeMicroseconds(ch6_value);  
  vb1 = (received_data.ch5);
  vb = (received_data.ch6); 
//dd

  display.clearDisplay();            //Clear the display  
  if(sound)
  {
    display.setCursor(0,0);            //Select where to print 124 x 64
    display.print("CARP BOAT");      //display.print("Sound ON"); 
  }
  if(!sound)
  {
    display.setCursor(0,0);            //Select where to print 124 x 64
    display.print("Sound OFF");     // display.print("Sound OFF");
  }
  display.setCursor(80,0);            //Select where to print 124 x 64
  display.print("V: ");
  display.print(battery_level,1);     
  display.setCursor(0,16);            //Select where to print 124 x 64
  display.print("Pravac: ");             
  display.print(throttle_to_send);     
 // display.print("      P: ");  
  //display.print(pitch_to_send);    
  display.setCursor(0,29);
  display.print("GAS: ");             
  display.print(yaw_to_send);     
  //display.print("      R: ");  
  //display.print(roll_to_send);  
  // 
  display.setCursor(0,42);
  display.print("Leva K:");             
  display.print(vb1,1);     
  display.print("  Desna K:");  
  display.print(vb,1); //togge_1 
  if(!mode)
  {
    display.setCursor(0,56);
    display.print("Mode: ");      
    display.print("Exponential"); 
  }
  if(mode)
  {
    display.setCursor(0,56);
    display.print("  ");      //display.print("Mode:  ");
    display.print("www.rcavioni.com"); //display.print("Linear"); 
  }
  
  if(battery_level < 6.5)
  {
  display.setCursor(80,16);
  display.print("Napunite"); 
  display.setCursor(80,29);
  display.print("Bateriju");              
  }

  // 
  display.display();   
  radio.stopListening();//d
  }

horace:
you assign vb to data.AUX2 which is a byte (8bit integer)

 data.AUX2     = (vb); // salje ispravno samo nema decimale

radio.write(&data, sizeof(MyData));



make AUX2 a float?

Yes, need me float number to voltage measure, like 5.1 5.2, me result only 5 6 7 8.