Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

liamjack/Arduino-NRF24L01-Thermometer #1

Open
M-Kingston opened this issue May 12, 2021 · 3 comments
Open

liamjack/Arduino-NRF24L01-Thermometer #1

M-Kingston opened this issue May 12, 2021 · 3 comments

Comments

@M-Kingston
Copy link

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.

@liamjack
Copy link
Owner

Hi Michael,

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.

@liamjack liamjack reopened this May 13, 2021
@M-Kingston
Copy link
Author

Hello liamjack.
Thank you for your reply. I assume I can download the up from the original site where I found it
Michael.

@liamjack
Copy link
Owner

Here is a link to a ZIP Archive of the project files (which includes the updated master.ino file): https://github.com/liamjack/Arduino-NRF24L01-Thermometer/archive/refs/heads/master.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants