You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have downloaded both the "Sensor" and "Master" sketches. In the "Master" sketch in the void loop() {
if (radio.available()) {
float temperature = 0;
if(! radio.read(&temperature,sizeof(float))) {
the above line gives the following error
could not convert 'radio.RF24::read(((void*)(&temperature)),((uint_8)sizeof(float)))' from'void' to 'bool'
Any help in solving the problem as I don't understand it???
Thanks Michael.
The text was updated successfully, but these errors were encountered:
Thanks for opening this issue, it appears that the underlying RF24 library has changed since my last commit (all the way back in 2017), and the radio.read function no longer returns a boolean. I have updated the master.ino file to address this issue, and it now compiles correctly, but I haven't been able to test with an actual Arduino board.
I have downloaded both the "Sensor" and "Master" sketches. In the "Master" sketch in the void loop() {
if (radio.available()) {
float temperature = 0;
if(! radio.read(&temperature,sizeof(float))) {
the above line gives the following error
could not convert 'radio.RF24::read(((void*)(&temperature)),((uint_8)sizeof(float)))' from'void' to 'bool'
Any help in solving the problem as I don't understand it???
Thanks Michael.
The text was updated successfully, but these errors were encountered: