Page 1 of 1

Another error: 'class ReefAngelClass' has no member named 'W

Posted: Fri May 06, 2011 2:14 pm
by paulo.hanashiro
Hi Curt.

I found another problem, and this time (IMHO) it looks like a bug in the processHTTP().

As I don't want wavemakers, I commented the "#define WavemakerSetup" at ReefAngel_Features.h.

Now when I try to verify my code, I'm having this error.

Code: Select all

C:\Users\PH250023\Documents\Pessoal\ReefAngel\ReefAngel 2.0\arduino-0022\libraries\ReefAngel_Wifi\ReefAngel_Wifi.cpp: In function 'void processHTTP()':
C:\Users\PH250023\Documents\Pessoal\ReefAngel\ReefAngel 2.0\arduino-0022\libraries\ReefAngel_Wifi\ReefAngel_Wifi.cpp:281: error: 'class ReefAngelClass' has no member named 'WM1Port'
C:\Users\PH250023\Documents\Pessoal\ReefAngel\ReefAngel 2.0\arduino-0022\libraries\ReefAngel_Wifi\ReefAngel_Wifi.cpp:285: error: 'class ReefAngelClass' has no member named 'WM2Port'
And it works fine uncommenting the "WavemakerSetup" feature.

Do we need some ifdef?

I did this in my lib ReefAngel_Wifi.cpp

Code: Select all

#ifdef WavemakerSetup
					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
Thanks in advance.
Paulo

Re: Another error: 'class ReefAngelClass' has no member name

Posted: Fri May 06, 2011 2:27 pm
by binder
Yeah, there is another bug in the ProcessHTTP() code that was found several weeks ago. It is only noticeable when you have wifi enabled and you have no wavemakers enabled. Somebody just asked this same question earlier today. See this thread for my solution.

http://forum.reefangel.com/viewtopic.php?f=12&t=47