Pages: 1 [2]   Go Down
Author Topic: Serial not declared in this scope. Now: WiFly Shield not connecting to network.  (Read 3300 times)
0 Members and 2 Guests are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am in the exact same boat as you guys. I am using the Uno and the Moodlight code. I have gotten it to compile after a ton of this and that. And appear to be in the same place you last posted about. I tried to grab your edited code, but the link expired. I'd love to know where you got.


I have gone through every bit of info online that I can find to get this to compile. Most of that was the small changes in this thread as well as the necessity to make the necessary replacements with "#include <Arduino.h>".

I am down to one final issue, and am hoping that someone has some insight.

My final compile error is:

...WiFly/WiFly.cpp: In member function 'bool WiFly::HttpWebRequest(const char*, const char*, HtmlParser*)':

...WiFly/WiFly.cpp:362: error: 'BYTE' was not declared in this scope


In Wifly.Cpp, on line 362, I see the following:

      m_printer->print(incoming_data,BYTE);


If I comment this line out, I can get the code to compile. But, when I run the code on the arduino, I see the following in the serial monitor:

Wi AOK
WiFly Shield
initializing SC16IS750 bridge...
success!

connecting to network...
Entering command mode.
warning: failed to find CMD
warning: failed to find *Reboot*
warning: failed to find *READY*
Entering command mode.
warning: failed to find CMD
warning: failed to find AOK
warning: failed to find AOK
warning: failed to find AOK
warning: failed to find AOK
warning: failed to find AOK
warning: failed to find IP=
Failed to associate with 'h-bomb-2'


So, it appears to be running, but I have issues with the network connection.

Clearly, I don't want to be commenting out that line, but am unsure of why it won't compile with that line of code in place.

Any ideas? Has anyone had any luck getting this running in the last year?


Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 633
Posts: 50217
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
In Wifly.Cpp, on line 362, I see the following:

      m_printer->print(incoming_data,BYTE);


If I comment this line out, I can get the code to compile. But, when I run the code on the arduino, I see the following in the serial monitor:
Don't comment out that code. Make the correct change (to use the write() method).
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the response. Things aren't dead!
I will give that a shot.

The code is sort of a mess, so I will see what I can do.

If I can get it compiled and working, I will be sure to upload the revised version so others can start there and not have to go through this comedy of errors...


Thank you.

« Last Edit: December 14, 2012, 02:38:34 pm by dmeeker » Logged

Pages: 1 [2]   Go Up
Jump to: