Hello community!
Looks like it is time to start my 1st post . With a problem, for sure.
Just soldered emonTX and fell like CERN scientist :)
On the step of upload of Arduino scetch I have the following error(s)
emonTx_CT123_Voltage.ino: In function 'void loop()':
emonTx_CT123_Voltage:137: error: 'send_rf_data' was not declared in this scope
emonTx_CT123_Voltage:141: error: 'emontx_sleep' was not declared in this scope
I followed this guide and downloaded this firmware.
Any ideas how this can be fixed?
=============================
More detailed output:
D:\firmware\arduino-1.0.5\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -I
D:\firmware\arduino-1.0.5\hardware\arduino\cores\arduino -I
D:\_ensap\firmware\arduino-1.0.5\hardware\arduino\variants\standard -ID:\_ensap\firmware\arduino-1.0.5\libraries\jeelib -I
D:\_ensap\firmware\arduino-1.0.5\libraries\EmonLib C:\Users\User\AppData\Local\Temp\build9149693989622019872.tmp\emonTx_CT123_Voltage.cpp -o C:\Users\User\AppData\Local\Temp\build9149693989622019872.tmp\emonTx_CT123_Voltage.cpp.o
emonTx_CT123_Voltage.ino: In function 'void loop()':
emonTx_CT123_Voltage:137: error: 'send_rf_data' was not declared in this scope
emonTx_CT123_Voltage:141: error: 'emontx_sleep' was not declared in this scope
Re: Error: 'send_rf_data' was not declared in this scope
Hmm... I don't think you have downloaded everything from Github. In the directory you link to, there are two files. You need both of them, because the functions it is saying it can't find ("not declared...") are in emontx_lib.ino That file should be in the same directory as the main sketch "emonTx_CT123_Voltage.ino" and it should appear on the second tab in your Arduino IDE.
Re: Error: 'send_rf_data' was not declared in this scope
I just tried this and looks like I can't open these files from one folder... I'm getting the following message:
Re: Error: 'send_rf_data' was not declared in this scope
I understood what I did wrong :)
And then did it right:
I opened .ino in the same window on separate tab and everything worked like a charm.
Re: Error: 'send_rf_data' was not declared in this scope
The Arduino IDE is really not intuitive.
Another IDE is being worked on (Arduide) but it still needs to be compiled manually in most cases. I never got to try it yet.