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'
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
Paulo