XOBXOB_Ethernet library: void function returns a value?

For Arduino users on XOBXOB
proetser
Posts: 1
Joined: Wed Apr 23, 2014 7:31 pm

XOBXOB_Ethernet library: void function returns a value?

Postby proetser » Wed Apr 23, 2014 7:39 pm

I have problems to compile a sketch with Arduino IDE 1.0.5 and the library XOBXOB_Ethernet
It contains the file XOBXOB_Ethernet.cpp

In which the following function is available:

void XOBXOB_Ethernet::stop()
{
return (_client.stop());
}

The error message is:
error: return-statement with a value, in function returning 'void'

It is a void function so it can't return a value I think.
Any ideas how to solve?

xobxob
Posts: 18
Joined: Sat Jul 27, 2013 8:41 am

Re: XOBXOB_Ethernet library: void function returns a value?

Postby xobxob » Wed Apr 23, 2014 8:41 pm

Hi. Thanks for your post!

That's a good point. Thanks for bringing it up. To fix the issue, we've just pushed an update to github that removes the "return" since Ethernet stop() doesn't return a value anyway (https://github.com/XOBXOB/XOBXOB_Arduino). We haven't had a chance to update the XOBXOB website download yet.

BTW, We'll be releasing a significant update to the Arduino library shortly along with some web updates. The new library is a bit easier to use and supports most "stream" clients, like Serial, Ethernet, etc. It also supports the Arduino Yún -- but, may require using IDE Arduino 1.5.6-r2 BETA (with support for Arduino Yún and Arduino Due boards).


Return to “Arduino”

Who is online

Users browsing this forum: No registered users and 1 guest