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

Related to the development libraries, released by Curt Binder
Post Reply
paulo.hanashiro
Posts: 18
Joined: Sat Mar 19, 2011 4:23 pm
Location: Sydne/Australia

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

Post 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
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

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

Post 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
Post Reply