Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wifi library doesn't work with arduino due board #21

Open
mirzaramicic opened this issue Jan 25, 2013 · 1 comment
Open

wifi library doesn't work with arduino due board #21

mirzaramicic opened this issue Jan 25, 2013 · 1 comment

Comments

@mirzaramicic
Copy link

when i select arduino uno it compiles correctly....but on arduino due i get following errors:

In file included from c:\arduino-1.5.1r2\hardware\tools\g++arm_none_eabi\bin../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/stdio.h:46,
from d:\Documents\Arduino\libraries\WiFi/utility/debug.h:13,
from d:\Documents\Arduino\libraries\WiFi\WiFiClient.cpp:6:
c:\arduino-1.5.1r2\hardware\tools\g++arm_none_eabi\bin../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/sys/types.h:93: error: conflicting declaration 'typedef short unsigned int u_short'
d:\Documents\Arduino\libraries\WiFi\utility/socket.h:71: error: 'u_short' has a previous declaration as 'typedef uint16 u_short'
d:\Documents\Arduino\libraries\WiFi\WiFiClient.cpp: In member function 'virtual int WiFiClient::read(uint8_t
, size_t)':
d:\Documents\Arduino\libraries\WiFi\WiFiClient.cpp:107: error: no matching function for call to 'ServerDrv::getDataBuf(uint8_t&, uint8_t
&, size_t_)'
d:\Documents\Arduino\libraries\WiFi\utility/server_drv.h:23: note: candidates are: static bool ServerDrv::getDataBuf(uint8_t, uint8_t_, uint16_t*)

@Fede85
Copy link
Contributor

Fede85 commented Feb 11, 2013

the library was added only since IDE version 1.5.2 (relase date: 2013.02.06)
The porting of the library for the Arduino Due is already inside the IDE, so you don't need to add it to the sketchbook folder.
Please tell me if you succeed to compile with the latest version of the IDE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants