error: 'TWEETrequest' does not name a type

Discussion about any of the included sketches (i.e. WebServer), or user-generated applications.

error: 'TWEETrequest' does not name a type

Postby magicmike » Thu Nov 12, 2009 6:23 pm

Whenever I try to compile the SimpleTweeter supplied sketch, I get the following error:
Code: Select all
error: 'TWEETrequest' does not name a type In function 'void loop()'

and the sketch does not compile.

Any assistance would be appreciated.
Thanks

More information:
=================
- Running Arduino 0017 on a Duomilanove, 328.
- The WebServer sample sketch worked fine, page was visible, etc, etc.
- AFAIK I'm using the latest WiServer code
- Tried editing app-conf.h to #define APP_WEBCLIENT. Currently it is set to APP_WEBSERVER.
magicmike
 
Posts: 2
Joined: Thu Nov 12, 2009 6:16 pm

Re: error: 'TWEETrequest' does not name a type

Postby GregEigsti » Thu Nov 12, 2009 6:41 pm

Does uncommenting #define APP_WISERVER in apps-conf.h help out? (and commenting the other related defines)

Greg
Check out the wiki!
uIP Stack Docs
Compatible Access Point List
WiShield user contrib branch - DNS, DHCP, AP Scanning, bug fixes, etc.
SlackLab.org - My geek projects blog.
User avatar
GregEigsti
 
Posts: 955
Joined: Sun Aug 02, 2009 5:23 pm
Location: Sammamish WA USA (near Seattle)

Re: error: 'TWEETrequest' does not name a type

Postby magicmike » Thu Nov 12, 2009 7:18 pm

Duh. Obviously I can't brain today. (So yes, that helped. Tweeting nicely).

Thanks for your help.
magicmike
 
Posts: 2
Joined: Thu Nov 12, 2009 6:16 pm

Re: error: 'TWEETrequest' does not name a type

Postby GregEigsti » Thu Nov 12, 2009 7:37 pm

Heh, heh, heh, I love the simple ones ;) Now give BrightKite a try (BrightKite will automagically crosspost to Twitter) and lets you post much richer data.

Greg
Check out the wiki!
uIP Stack Docs
Compatible Access Point List
WiShield user contrib branch - DNS, DHCP, AP Scanning, bug fixes, etc.
SlackLab.org - My geek projects blog.
User avatar
GregEigsti
 
Posts: 955
Joined: Sun Aug 02, 2009 5:23 pm
Location: Sammamish WA USA (near Seattle)

Re: error: 'TWEETrequest' does not name a type

Postby 3030vision » Fri Jul 30, 2010 4:07 am

Just starting to get my WiShield working-- compiled and loaded the example WebServer (yay!) but I had the same problem described above when trying to compile SimpleTweeter. Sounds like the solution was fairly obvious, but I don't understand. I uncommented #define APP_WISERVER in apps-conf.h (why, I don't know!) and now I'm getting these errors on compile:

Code: Select all
                 from /Users/greg/Documents/Arduino/libraries/WiShield/uip-conf.h:141,

                 from /Users/greg/Documents/Arduino/libraries/WiShield/uipopt.h:104,

                 from /Users/greg/Documents/Arduino/libraries/WiShield/uip.h:89,

                 from /Users/greg/Documents/Arduino/libraries/WiShield/global-conf.h:43,

                 from /Users/greg/Documents/Arduino/libraries/WiShield/clock-arch.c:35:

/Users/greg/Documents/Arduino/libraries/WiShield/server.h:65: error: conflicting types for 'uip_tcp_appstate_t'

/Users/greg/Documents/Arduino/libraries/WiShield/webserver.h:43: error: previous declaration of 'uip_tcp_appstate_t' was here


If you can give me some information or point me towards where I can read up on what's going on, I would appreciate it. Obviously I'm totally new to this.

Thanks.
3030vision
 
Posts: 8
Joined: Fri Jul 02, 2010 3:01 pm

Re: error: 'TWEETrequest' does not name a type

Postby 3030vision » Fri Jul 30, 2010 2:41 pm

Ok, looks like I didn't read this: http://asynclabs.com/wiki/index.php?title=WiServerBuild

I'm currently trying to understand the difference between the WebServer and WiServer. Seems like I can run a webserver with WiServer, but I'm not sure the difference there.
3030vision
 
Posts: 8
Joined: Fri Jul 02, 2010 3:01 pm

Re: error: 'TWEETrequest' does not name a type

Postby GregEigsti » Tue Aug 03, 2010 7:35 am

I'm currently trying to understand the difference between the WebServer and WiServer.

Just different ways of doing the same thing (mostly). Think of WebServer/WebClient as being "raw" socket applications and WiServer being a useful helper that makes web server/client applications easier (plus WiServer also simplifies POSTs and twitter access).
Check out the wiki!
uIP Stack Docs
Compatible Access Point List
WiShield user contrib branch - DNS, DHCP, AP Scanning, bug fixes, etc.
SlackLab.org - My geek projects blog.
User avatar
GregEigsti
 
Posts: 955
Joined: Sun Aug 02, 2009 5:23 pm
Location: Sammamish WA USA (near Seattle)

Re: error: 'TWEETrequest' does not name a type

Postby 3030vision » Tue Aug 03, 2010 3:51 pm

That makes sense. Now if I can just get WiServer twitter updates working! I definitely need the help(er)-- been digging around in the code a little but I'm not getting too far. Been way to long since I've done much coding.

Thanks!
3030vision
 
Posts: 8
Joined: Fri Jul 02, 2010 3:01 pm


Return to Sketches and Applications

Who is online

Users browsing this forum: Google [Bot] and 1 guest