Error In Coding

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
RF24 radio(7, 8);
const byte address[6] = “00001”;
const int button1Pin = 2;
const int button2Pin = 4;
int button1State = 0;
int button2State = 0;
struct buttonState
{
int button1State = 0;
int button2State = 0;
};

void setup() {
pinMode(button1Pin, INPUT);
pinMode(button2Pin, INPUT);
Serial.begin(9600);
radio.begin();
radio.openWritingPipe(address);
radio.setPALevel(RF24_PA_MAX);
radio.stopListening();
}
void loop() {
radio.stopListening();
button1State = digitalRead(button1Pin);
button2State = digitalRead(button2Pin);
radio.write(&buttonState, sizeof(buttonState));
}

Error:expected primary-expression before ‘,’ token in last line.
Please Help me If you can. Its Urgent.

Try this

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
RF24 radio(7, 8);
const byte address[6] = "00001";
const int button1Pin = 2;
const int button2Pin = 4;
int button1State = 0;
int button2State = 0;
struct data
{
  int button1State = 0;
  int button2State = 0;
} buttonState;

void setup()
{
  pinMode(button1Pin, INPUT);
  pinMode(button2Pin, INPUT);
  Serial.begin(9600);
  radio.begin();
  radio.openWritingPipe(address);
  radio.setPALevel(RF24_PA_MAX);
  radio.stopListening();
}
void loop()
{
  radio.stopListening();
  buttonState.button1State = digitalRead(button1Pin);
  buttonState.button2State = digitalRead(button2Pin);
  radio.write(&buttonState, sizeof(buttonState));
}

The struct has been given a name and that name is used in assigning values to the elements of the struct

Why do you call stopListening without ever having called startListening?

Why do you call that routine each time you go through loop?

Why do you think sending more than thousand packets a second is sensible?

Wouldn't it be better to send 5 packets a second or whenever a button changes?

Have a look at this Simple nRF24L01+ Tutorial.

Wireless problems can be very difficult to debug so get the wireless part working on its own before you start adding any other features.

...R