Problems with pde on webbanner...

1 view
Skip to first unread message

pasqualevg

unread,
Mar 31, 2011, 12:43:10 PM3/31/11
to Reef Angel Controller
Hi, i think that i will ask many many questions to customize my ra...
now i'm studing the pde and libraries, i'm using curt's libraries
(vers. 0.8.5.14) and i'm trying to have a webbanner directly from the
controller, but when i put my sketch i have an error: help me...

Ultima1.cpp: In function 'void setup()':
Ultima1:63: error: 'class ReefAngelClass' has no member named
'LoadWebBanner'
Ultima1.cpp: In function 'void loop()':
Ultima1:88: error: 'class ReefAngelClass' has no member named
'WebBanner'

The sketch is:

#include <ReefAngel_Features.h>
#include <ReefAngel_Globals.h>
#include <ReefAngel_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <ReefAngel_EEPROM.h>
#include <ReefAngel_NokiaLCD.h>
#include <ReefAngel_ATO.h>
#include <ReefAngel_Joystick.h>
#include <ReefAngel_LED.h>
#include <ReefAngel_TempSensor.h>
#include <ReefAngel_Relay.h>
#include <ReefAngel_PWM.h>
#include <ReefAngel_Timer.h>
#include <ReefAngel_Memory.h>
#include <ReefAngel.h>

// Labels for the web banner
#include <avr/pgmspace.h>
prog_char id_label[] PROGMEM = "pasq";
prog_char probe1_label[] PROGMEM = "Water";
prog_char probe2_label[] PROGMEM = "Room";
prog_char probe3_label[] PROGMEM = "Not%20Used";
prog_char relay1_label[] PROGMEM = "ATO";
prog_char relay2_label[] PROGMEM = "Actinic";
prog_char relay3_label[] PROGMEM = "Halide";
prog_char relay4_label[] PROGMEM = "Powerhead%202";
prog_char relay5_label[] PROGMEM = "Powerhead%201";
prog_char relay6_label[] PROGMEM = "Chiller";
prog_char relay7_label[] PROGMEM = "Heater";
prog_char relay8_label[] PROGMEM = "Sump";
PROGMEM const char *webbanner_items[] = {
id_label, probe1_label, probe2_label, probe3_label, relay1_label,
relay2_label,
relay3_label, relay4_label, relay5_label, relay6_label, relay7_label,
relay8_label};


void setup()
{
ReefAngel.Init(); //Initialize controller
// Initialize and start the web banner timer
ReefAngel.LoadWebBanner(pgm_read_word(&(webbanner_items[0])),
SIZE(webbanner_items));
ReefAngel.Timer[4].SetInterval(180); // set interval to 180
seconds
ReefAngel.Timer[4].Start();

// Ports that are always on
ReefAngel.Relay.On(Port8);
}

void loop()
{
ReefAngel.ShowInterface();

// Specific functions
ReefAngel.StandardATO(Port1);
ReefAngel.StandardLights(Port2);
ReefAngel.MHLights(Port3);
ReefAngel.Wavemaker1(Port4);
ReefAngel.Wavemaker2(Port5);
ReefAngel.StandardFan(Port6);
ReefAngel.StandardHeater(Port7);

// Web Banner stuff
if(ReefAngel.Timer[4].IsTriggered())
{
ReefAngel.Timer[4].Start();
ReefAngel.WebBanner();
}
}

Matthew J Ouwerkerk

unread,
Mar 31, 2011, 1:49:58 PM3/31/11
to reef...@googlegroups.com
I'm working on the exact same error right now:
http://forum.reefangel.com/viewtopic.php?f=7&t=19

I haven't had a chance to try Curt's latest suggestion on the forum yet though.


Matt

Curt Binder

unread,
Mar 31, 2011, 5:16:21 PM3/31/11
to reef...@googlegroups.com
If you would, please check your ReefAngel_Features.h file. It should
have #define wifi enabled inside the code. If wifi is not enabled,
then those 2 functions you mention will not be available.

The location of the ReefAngel_Features.h file should be:

My Documents/Arduino/libraries/ReefAngel_Features/ReefAngel_Features.h

That file should contain a lot of comments along with the define statements.

If you used RAGen to generate the PDE file, then it will only contain
the #define statements that are needed. You will also notice that the
#define statements will be in the comments at the top of your PDE
file.
If you are using RAGen, on the Features tab, make sure you have a
checkmark next to WIFI so the wifi features are turned on.

Also, if you do not have WIFI enabled, you will not have the
capability to use the wifi module with the controller.

So check those spots (and read the link to the forum that Matt
posted), it says a lot of the same stuff I just wrote here.

curt

Reply all
Reply to author
Forward
0 new messages