Hi there,
hope you can help me with some strange behaviour of the cc300 Library. After installation all demo sketches work fine. So, everything is ok. But when I try to include SD.h, for my webserver I get. And even after reinstalliung IDE I can´t get it working again.
In file included from C:\Users\...\Documents\Arduino\libraries\Adafruit_CC3000_Library\examples\EchoServer\EchoServer.ino:77:0:
C:\Users\...\Documents\Arduino\libraries\Adafruit_CC3000_Library/utility/socket.h:114:0: warning: "ENOBUFS" redefined
#define ENOBUFS 55 // No buffer space available
^
In file included from C:\Users\...\Documents\Arduino\libraries\Adafruit_CC3000_Library/utility/cc3000_common.h:53:0,
from C:\Users\...\Documents\Arduino\libraries\Adafruit_CC3000_Library/Adafruit_CC3000.h:28,
from C:\Users\...\Documents\Arduino\libraries\Adafruit_CC3000_Library\examples\EchoServer\EchoServer.ino:74:
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\errno.h:122:0: note: this is the location of the previous definition
#define ENOBUFS ENOERR
Sorry, Arduino is really new to me and I don´t understand what this error means.
Thanks for your help
Adafruit_CC3000_Library Problem
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_mike
- Posts: 67391
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Adafruit_CC3000_Library Problem
The message is saying that two files have used the #define system to give the same identifier (ENOBUFS) two different meanings.
The text you posted lists it as a warning, not as a fatal error. Does the compiler give up trying to build the firmware when it hits that problem?
The text you posted lists it as a warning, not as a fatal error. Does the compiler give up trying to build the firmware when it hits that problem?
- artester
- Posts: 10
- Joined: Wed Sep 30, 2015 6:59 pm
Re: Adafruit_CC3000_Library Problem
I had the same warning message when compiling.
In socket.h, I changed
#define ENOBUFS 55 // No buffer space available
to
#ifndef ENOBUFS
#define ENOBUFS 55 // No buffer space available
#endif
This removes the redefine warning message, but I don't know what else it'll affect.
In socket.h, I changed
#define ENOBUFS 55 // No buffer space available
to
#ifndef ENOBUFS
#define ENOBUFS 55 // No buffer space available
#endif
This removes the redefine warning message, but I don't know what else it'll affect.
- adafruit_support_mike
- Posts: 67391
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Adafruit_CC3000_Library Problem
The guard clause should work. Does the code run properly?
- artester
- Posts: 10
- Joined: Wed Sep 30, 2015 6:59 pm
Re: Adafruit_CC3000_Library Problem
Yes, the code works, but I still don't know what ENOBUFS 'should' be.
- adafruit_support_mike
- Posts: 67391
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Adafruit_CC3000_Library Problem
If memory serves, that's the buffer for error messages from the low-level hardware. The given value of 55 characters should be plenty.
Please be positive and constructive with your questions and comments.