Adafruit_CC3000_Library Problem

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Harduino
 
Posts: 1
Joined: Thu Feb 16, 2017 5:22 am

Adafruit_CC3000_Library Problem

Post by Harduino »

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

User avatar
adafruit_support_mike
 
Posts: 67391
Joined: Thu Feb 11, 2010 2:51 pm

Re: Adafruit_CC3000_Library Problem

Post by adafruit_support_mike »

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?

User avatar
artester
 
Posts: 10
Joined: Wed Sep 30, 2015 6:59 pm

Re: Adafruit_CC3000_Library Problem

Post by artester »

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.

User avatar
adafruit_support_mike
 
Posts: 67391
Joined: Thu Feb 11, 2010 2:51 pm

Re: Adafruit_CC3000_Library Problem

Post by adafruit_support_mike »

The guard clause should work. Does the code run properly?

User avatar
artester
 
Posts: 10
Joined: Wed Sep 30, 2015 6:59 pm

Re: Adafruit_CC3000_Library Problem

Post by artester »

Yes, the code works, but I still don't know what ENOBUFS 'should' be.

User avatar
adafruit_support_mike
 
Posts: 67391
Joined: Thu Feb 11, 2010 2:51 pm

Re: Adafruit_CC3000_Library Problem

Post by adafruit_support_mike »

If memory serves, that's the buffer for error messages from the low-level hardware. The given value of 55 characters should be plenty.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”