Eine schliessende Klammer nach radio.read
Die ist wohl auch mit dem Ausgabebefehl vergessen gegangen.
//Kommunikation
#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
RF24 radio(7, 8);
byte addresses[][6] = {"1Node", "2Node"};
boolean role; // The main role variable, holds the current role identifier
boolean recieve = 1, senden = 0; // The two different roles.
void setup () {
Serial.begin(250000);
//Kommunikation starten
radio.begin(); // Start up the radio
radio.setAutoAck(1); // Ensure autoACK is enabled
radio.openReadingPipe(1, addresses[0]);
radio.startListening(); // Start listening
}
void loop () {
float got_tempout; // Variable for the received timestamp
if (radio.available()) { // While there is data ready
radio.read( &got_tempout, sizeof(got_tempout) ); // Get the payload
}
serial.println(got_tempout);
}