WiFi Alerts Compiling Error

Do you have a question on how to do something.
Ask in here.
Post Reply
ReefingHavoc
Posts: 54
Joined: Tue Jul 23, 2013 5:56 pm

WiFi Alerts Compiling Error

Post by ReefingHavoc »

I'm trying to implement lnevo's Wifi alerts and am getting the following compiling errors:

C:\Users\Spencer\Documents\Arduino\libraries\WiFiAlert\WiFiAlert.cpp: In member function 'void WiFiAlert::WiFiSendAlert(char*)':
C:\Users\Spencer\Documents\Arduino\libraries\WiFiAlert\WiFiAlert.cpp:30: error: 'class ReefAngelClass' has no member named 'portalusername'
C:\Users\Spencer\Documents\Arduino\libraries\WiFiAlert\WiFiAlert.cpp:32: error: 'class ReefAngelClass' has no member named 'portalkey'

I thought I added the latest libraries, but something's not working correctly...any suggestions?

Mike
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Re: WiFi Alerts Compiling Error

Post by lnevo »

Check the first or second post in the thread. I should have the wifialert updated there. It should have updates to the RAWiFi class as well
ReefingHavoc
Posts: 54
Joined: Tue Jul 23, 2013 5:56 pm

Re: WiFi Alerts Compiling Error

Post by ReefingHavoc »

Got it, thanks. Is testing this as simple as pulling the power from the RA unit and waiting for an email?
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Re: WiFi Alerts Compiling Error

Post by lnevo »

If you have it setup correctly to send the alert on losing a relay box.
aranax
Posts: 120
Joined: Thu Jun 02, 2011 11:54 pm

Re: WiFi Alerts Compiling Error

Post by aranax »

Hey Lee et al,
I'm having the same compile error but I can't find the fix in your other thread. I unzipped the files into the appropriate folders but I'm still getting the compiling error below:

"C:\Program Files (x86)\Reef Angel Controller\libraries\WiFiAlert\WiFiAlert.cpp:32: error: 'class RA_Wifi' has no member named 'portalkey'"

I'm sure I missed something. Please help. Thanks.

Jeremiah
Image
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Re: WiFi Alerts Compiling Error

Post by lnevo »

Yes your missing the updates i posted after 1.1.0 came out.

The good news is that i successfully made a pull request to add this to the libs :)

Check my thread for the latest link to the new version
aranax
Posts: 120
Joined: Thu Jun 02, 2011 11:54 pm

Re: WiFi Alerts Compiling Error

Post by aranax »

Thanks Lee. Trying to find the link now. This is the code I used from your thread (http://forum.reefangel.com/viewtopic.php?f=11&t=2328). Thanks again.

Jeremiah
Image
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Re: WiFi Alerts Compiling Error

Post by lnevo »

Yeah try redownloading the wifialert.zip. It should have 4 files in it...
aranax
Posts: 120
Joined: Thu Jun 02, 2011 11:54 pm

Re: WiFi Alerts Compiling Error

Post by aranax »

Still no go. Same compile error. I'm on version 1.1.0

What I did:

Copied latest code from (http://forum.reefangel.com/viewtopic.php?f=11&t=2328) second post.
Grabbed Libraries-master from your github to make sure I have the latest.
Installed WifiAlert/Tide/Moon/Sun into C:\Users\jmaza\Documents\Arduino\libraries
Replaced Reefangel with version from github to C:\Users\jmaza\Documents\Arduino\libraries
Installed WifiAlert/Tide/Moon/Sun into C:\Program Files (x86)\Reef Angel Controller\libraries (did this originally until I realized that I copied into the wrong place).
Added appropriate lines to update/features file

Compiled but still got the same error. (above)

What am I still missing? Thanks again Lee.

Jeremiah
Image
aranax
Posts: 120
Joined: Thu Jun 02, 2011 11:54 pm

Re: WiFi Alerts Compiling Error

Post by aranax »

posted before I saw your post. The wifialert.zip I have only has two files:

.cpp
.h

I grabbed that from your github (and the original post). I'll look for the updated version now.
Image
aranax
Posts: 120
Joined: Thu Jun 02, 2011 11:54 pm

Re: WiFi Alerts Compiling Error

Post by aranax »

Compile error fixed. User error as usual. Thanks Lee.
Image
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Re: WiFi Alerts Compiling Error

Post by lnevo »

Yeah hopefully next version you won't have to do anything :)
Post Reply