I have a problem with RAGen, i active Wifi + Dosing Repeat Setup + WebBanner, i change Wavemaker 1 and 2 with doso 1 and 2 but i have these errors:
\\psf\Home\Documents\Arduino\libraries\ReefAngel_Wifi\ReefAngel_Wifi.cpp: In function 'void processHTTP()':
\\psf\Home\Documents\Arduino\libraries\ReefAngel_Wifi\ReefAngel_Wifi.cpp:281: error: 'class ReefAngelClass' has no member named 'WM1Port'
\\psf\Home\Documents\Arduino\libraries\ReefAngel_Wifi\ReefAngel_Wifi.cpp:285: error: 'class ReefAngelClass' has no member named 'WM2Port'
Can you help me?
That error was from me forgetting to exclude a variable when no
wavemakers are in use.
curt
--
/*
Curt Binder
http://curtbinder.info/
*/
The solution to the problem is quite simple and will be in the next
release of my libraries. I'm going to assume that you will be able to
locate the lines and type in a couple lines to fix the problem.
Open this file inside a text editor (notepad works fine)
\\pfs\Home\Documents\Arduino\libraries\ReefAngel_Wifi\ReefAngel_Wifi.cpp
Locate the following block of code (starts on line 265):
case REQ_M_BYTE:
case REQ_M_INT:
{
// webmemoryloc is location
// weboption is value
if ( bHasSecondValue && (webmemoryloc >= 0) )
{
// if we have a second value, we write the value to memory
if ( reqtype == REQ_M_BYTE )
InternalMemory.write(webmemoryloc, weboption);
else
InternalMemory.write_int(webmemoryloc, weboption);
#ifdef WavemakerSetup // ADD THIS LINE
if ( (webmemoryloc == Mem_I_WM1Timer) || (webmemoryloc == Mem_I_WM2Timer) )
{
// Restart wavemaker timers once they are set
byte i = 1;
byte p = ReefAngel.WM1Port;
if ( webmemoryloc == Mem_I_WM2Timer )
{
i = 2;
p = ReefAngel.WM2Port;
}
ReefAngel.Timer[i].Trigger = 0;
ReefAngel.Timer[i].SetInterval(weboption);
ReefAngel.Timer[i].Start();
ReefAngel.Relay.On(p);
}
#endif // WavemakerSetup // ADD THIS LINE
Serial.print("<M>OK</M>");
}
Add in the 2 lines that have // ADD THIS LINE in them. Those lines are
#ifdef WavemakerSetup
#endif // WavemakerSetup
Your code will look like the above block of code.
Now save the file.
Then you can go back to Arduino and compile and upload to your controller.
Thank you for catching this bug/error. That slipped right past me.
This should take care of everything for you. If not, I know you will
let me know.
Curt