Open LoebCheng opened 9 years ago
I added this file to the libraries directory for Arduino: https://github.com/maniacbug/RF24/blob/master/examples/pingpair/printf.h
Thanks for bringing it up - I'll add it to the readme
Thank you for your quick reply I joined printf.h archives, but still presented problems Could you give me some help? Here is my error message, thank you so much.
Arduino:1.6.1 (Windows 8.1), 板子:"Arduino Nano, ATmega328"
wireless_node_transmiter.ino: In function 'void setup()':
wireless_node_transmiter.ino:147:42: error: invalid conversion from 'byte* {aka unsigned char*}' to 'uint64_t {aka long long unsigned int}' [-fpermissive]
In file included from wireless_node_transmiter.ino:32:0:
RF24.h:324:8: error: initializing argument 1 of 'void RF24::openWritingPipe(uint64_t)' [-fpermissive]
void openWritingPipe(uint64_t address);
wireless_node_transmiter.ino:148:42: error: invalid conversion from 'byte* {aka unsigned char*}' to 'uint64_t {aka long long unsigned int}' [-fpermissive]
In file included from wireless_node_transmiter.ino:32:0:
RF24.h:350:8: error: initializing argument 2 of 'void RF24::openReadingPipe(uint8_t, uint64_t)' [-fpermissive]
void openReadingPipe(uint8_t number, uint64_t address);
Hmm - that is very strange. It's compiling perfectly for me. Which RF24 library are you using - that could be. I'm using the one from here: https://github.com/maniacbug/RF24 (I really should have made that more clear)
Thank you for your reply I am trying, hoping to solve the problem.
Did that work for you?
Still does not work. I will show you the wrong message, thank you still want to be concerned about this matter. Much obliged.
Chris notifications@github.com 於 2015年4月11日 星期六寫道:
Did that work for you?
— Reply to this email directly or view it on GitHub https://github.com/shockwaver/Wireless-Weather/issues/1#issuecomment-91848172 .
Sorry error message is late, Hope to have a little help.
Arduino: 1.6.3 (Windows 8.1), Board: "Arduino Uno"
wireless_node_transmiter.ino: In function 'void setup()':
wireless_node_transmiter.ino:147:42: error: invalid conversion from 'byte* {aka unsigned char*}' to 'uint64_t {aka long long unsigned int}' [-fpermissive]
In file included from wireless_node_transmiter.ino:32:0:
\nwap-tw-vs1\users$\LCheng\My Documents\Arduino\libraries\RF24/RF24.h:324:8: error: initializing argument 1 of 'void RF24::openWritingPipe(uint64_t)' [-fpermissive]
void openWritingPipe(uint64_t address);
^
wireless_node_transmiter.ino:148:42: error: invalid conversion from 'byte* {aka unsigned char*}' to 'uint64_t {aka long long unsigned int}' [-fpermissive]
In file included from wireless_node_transmiter.ino:32:0:
\nwap-tw-vs1\users$\LCheng\My Documents\Arduino\libraries\RF24/RF24.h:350:8: error: initializing argument 2 of 'void RF24::openReadingPipe(uint8_t, uint64_t)' [-fpermissive]
void openReadingPipe(uint8_t number, uint64_t address);
^
Error compiling.
This report would have more information with "Show verbose output during compilation" enabled in File > Preferences.
There are multiple RF24 libraries out there - are you using the one I linked previously?
The error is because it's not recognizing the address strings "node1"
Yes, I am using the links you provide RF24 libraries. I added him to my libraries. But the same error appears printf.h:No such file or directory compilation terminated. I copied sample printf.h in pingpair to the wireless_node_transmiter folder, it will appear "node1" error.
My steps have errors, thank you very much you are willing to assist me.
Ooops - this is my fault. I gave you the wrong link.
https://github.com/tmrh20/RF24/ http://tmrh20.github.io/RF24/
That's the RF24 library I used. The one I linked previously does not support string addresses.
Thank you for your teaching. Ask a question, can be uploaded to the Board normally, but open the Monitor is blank, normal? (baud 115200)
for the wireless node transmitter - you need to uncomment line 80 to enable the serial monitor.
Also, I've had some issues using the sleepy library for the delays and using the serial monitor. You can replace them with delay() on line 195 and 236. This will completely remove the power savings from sleeping - but it's OK for testing.
So glad you shared this example. But I compiled wrong, could you please give me some help? Thank you very much.
wireless_node_transmiter.ino:33:20: fatal error: printf.h: No such file or directory compilation terminated.