Examples won't build

Postings related to the second version of the WiShield

Examples won't build

Postby JKroschel » Tue Aug 17, 2010 1:08 pm

I've downloaded the WiShield 1.3.0 library and the dataflash library and have placed them both under the "C:\Program Files\Arduino\arduino-0017\hardware\libraries" folder (named WiShield and dataflash as noted in the directions). This gives me 8 example sketches, most of which do not build for me. Here are my results:

Flash builds.
SimpleClient throws an error stating that GETrequest does not name a type.
SimpleServer throws several errors, most of which state that there is an undefined reference to 'WiServer'.
SimpleTweeter throws an error stating TWEETrequest does not have a type.
SocketApp, UDPApp, and WebClient all throw the same errors: There are conflicting types for uip_tcp_appstate_t and that it has been previously declared.
WebServer builds.

So of the 8 examples that come with the library, only two build for me regardless of whether I change anything (network information, etc) or not. Can anyone tell me what is wrong with my setup?

Also, of the two that do build, when I put my network information into the local_ip, gateway_ip, subnet_mask, security_type, ssid, and security_passphrase, it still won't connect to my AP. I don't see a connection light appear on the shield either. What kind of debugging steps can I do to figure out why it isn't connecting?
JKroschel
 
Posts: 2
Joined: Tue Aug 17, 2010 12:53 pm

Re: Examples won't build

Postby GregEigsti » Tue Aug 17, 2010 1:58 pm

Please read through the example sketches portion of the wiki; it will explain what changes you need to make each of the sample apps compile/run. Specifically changing apps-conf.h (for all app types) and uip-conf.h (for UDP apps).

Regarding non connection - have you checked the compatible access point list to see if your AP is known good or bad? Have you tried with a different encryption type?

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: 1067
Joined: Sun Aug 02, 2009 5:23 pm
Location: Sammamish WA USA (near Seattle)
  • Website

Re: Examples won't build

Postby JKroschel » Thu Aug 19, 2010 1:22 pm

Thanks for pointing out the wiki pages. I'll try those modifications in a bit.
As for the connection... While testing, I was connected to the AP with my IPhone. I know that it connected with either WPA or WPA2. I tried both of those with the shield using the same settings as my phone. No dice.
JKroschel
 
Posts: 2
Joined: Tue Aug 17, 2010 12:53 pm


Return to WiShield 2.0

Who is online

Users browsing this forum: No registered users and 1 guest