Errors compiling RFM12B Demo sketch?

Discussion of Jee Products and Wireless Tech
kramerica
Posts: 2
Joined: Wed Feb 12, 2014 11:10 am

Errors compiling RFM12B Demo sketch?

Post by kramerica »

I need some assistance.

I have an Arduino Uno - and I purchased a RFM12B board from Modern Device.


I followed this guide:
http://jeelabs.net/projects/hardware/wiki/RFM12B_Board


I then downloaded the library.

https://github.com/jcw/jeelib

I download the "jeelib-master.zip"

I unzip it to my arduino library directory and name it: "JeeLib"

These instructions told me to name the directory:
http://jeelabs.net/pub/docs/jeelib/md_README.html

-Unpack the archive and rename the resulting folder to "JeeLib".
-Move it to the "libraries" folder in your Arduino sketches area.
-Restart the Arduino IDE to make sure it sees the new files.



I see the examples and I choose the Example:

RF12Demo and attempt to upload and I get dozens and dozens of errors:


RF12demo:48: error: 'RF12_EEPROM_SIZE' was not declared in this scope
RF12demo:55: error: 'RF12_MAXDATA' was not declared in this scope
RF12demo:56: error: 'RF12_MAXDATA' was not declared in this scope
RF12demo.ino: In function 'void saveConfig()':
RF12demo:88: error: 'struct RF12Config' has no member named 'msg'
RF12demo:88: error: 'struct RF12Config' has no member named 'msg'
RF12demo:89: error: 'struct RF12Config' has no member named 'msg'
RF12demo:92: error: 'struct RF12Config' has no member named 'msg'
RF12demo:93: error: 'struct RF12Config' has no member named 'msg'
RF12demo:94: error: 'struct RF12Config' has no member named 'msg'
RF12demo:96: error: 'struct RF12Config' has no member named 'msg'
RF12demo:98: error: 'struct RF12Config' has no member named 'msg'
RF12demo:99: error: 'struct RF12Config' has no member named 'msg'
RF12demo:101: error: 'struct RF12Config' has no member named 'msg'
RF12demo:104: error: 'struct RF12Config' has no member named 'msg'
RF12demo:105: error: 'struct RF12Config' has no member named 'msg'
RF12demo:114: error: 'RF12_EEPROM_ADDR' was not declared in this scope
RF12demo:117: error: 'rf12_config' was not declared in this scope
RF12demo.ino: In function 'byte bandToFreq(byte)':
RF12demo:122: error: 'RF12_868MHZ' was not declared in this scope
RF12demo:122: error: 'RF12_915MHZ' was not declared in this scope
RF12demo:122: error: 'RF12_433MHZ' was not declared in this scope
etc.
etc.
etc.

oz
Site Admin
Posts: 542
Joined: Mon May 12, 2008 4:19 pm

Re: Errors compiling RFM12B Demo sketch?

Post by oz »

The issue is definitely that Arduino is not seeing your library. Are you using a fairly recent version of Arduino?
The JeeLib library is just named "JeeLib" and is the the libraries folder (you might need to make this) inside of the Arduino folder, where you are saving your sketches?
You can confirm where you are saving your sketches by checking the path in the Arduino IDE->Arduino menu -> Preferences.

Write back here but you can also try calling the shop and I'll help you get going. It is confusing for beginners, but once you install a couple of libraries you'll figure out most of the path problems.

Paul

Post Reply