0

Adafruit_CC3000_Library Problem
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit_CC3000_Library Problem

by Harduino on Thu Feb 16, 2017 5:34 am

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

Harduino
 
Posts: 1
Joined: Thu Feb 16, 2017 5:22 am

Re: Adafruit_CC3000_Library Problem

by adafruit_support_mike on Fri Feb 17, 2017 5:33 am

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?

adafruit_support_mike
 
Posts: 57106
Joined: Thu Feb 11, 2010 2:51 pm

Re: Adafruit_CC3000_Library Problem

by artester on Sat Feb 16, 2019 2:24 am

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.

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

Re: Adafruit_CC3000_Library Problem

by adafruit_support_mike on Sun Mar 17, 2019 11:34 pm

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

adafruit_support_mike
 
Posts: 57106
Joined: Thu Feb 11, 2010 2:51 pm

Re: Adafruit_CC3000_Library Problem

by artester on Mon Mar 18, 2019 2:27 pm

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

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

Re: Adafruit_CC3000_Library Problem

by adafruit_support_mike on Mon Mar 18, 2019 11:53 pm

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

adafruit_support_mike
 
Posts: 57106
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.