Dosing pumps

15 views
Skip to first unread message

Simome Rocchesini

unread,
Apr 6, 2011, 2:32:34 AM4/6/11
to reef...@googlegroups.com
Hi everyone,

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?


Curt Binder

unread,
Apr 6, 2011, 7:51:53 AM4/6/11
to reef...@googlegroups.com
That error has already been fixed (or at least it should be). It was
fixed in v0.8.5.8. What version of the Development libraries are you
using?

That error was from me forgetting to exclude a variable when no
wavemakers are in use.

curt

--
/*
Curt Binder
http://curtbinder.info/
*/

LukeLuke

unread,
Apr 6, 2011, 8:24:57 AM4/6/11
to reef...@googlegroups.com
hi curt,
Simone use your latest release ....

The problem is that he use the Dosometric instead of the WM...

Bye
Luca


2011/4/6 Curt Binder <curt....@gmail.com>

Curt Binder

unread,
Apr 6, 2011, 8:46:17 AM4/6/11
to reef...@googlegroups.com
I see the problem now. I was looking at another, very similar problem.

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

Simome Rocchesini

unread,
Apr 6, 2011, 1:10:06 PM4/6/11
to reef...@googlegroups.com
Tnx!!...nice....

Simome Rocchesini
simo...@alice.it

Reply all
Reply to author
Forward
0 new messages