-->
Page 1 of 4

esp-socket library

PostPosted: Thu Nov 05, 2015 12:22 pm
by inx
Hello

The last couple of weeks i was working on a c++ wrapper for the networking part of the SDK.
Here it is:
https://github.com/i-n-g-o/esp-socket

It is a wrapper around the SDKs networking structures and is an alternative to the lwip socket implementation coming along with the Arduino package. It uses the espconn structures and callbacks provided by the SDK.

I am sure it can be improved and would be interested in comments and suggestions in design, code and usability.

inx

Re: esp-socket library

PostPosted: Thu Nov 05, 2015 1:55 pm
by kolban
Oooh ... now THIS is useful. I can see value here. However, for my projects, I would need a "C" language environment as opposed to CPP. Do you have any plans along those lines?

Re: esp-socket library

PostPosted: Sat Nov 07, 2015 6:43 am
by inx
Hi.
thanks for your comment.
sorry i don't have plans for a "C" implementation.

Re: esp-socket library

PostPosted: Sat Nov 07, 2015 9:32 am
by canedje
This is where I'm looking for thanks.

I tried your example but at compiling its giving the next error:

    ^
    D:/Documenten/Arduino/libraries/Client/ESP8266SocketBase.cpp: In member function 'virtual sint8 ESP8266SocketBase::send(uint8*, uint16)':
    D:/Documenten/Arduino/libraries/Client/ESP8266SocketBase.cpp:190:44: error: 'ESPCONN_SEND' was not declared in this scope
    return ESPCONN_SEND(esp_conn, data, length);
    ^
    D:/Documenten/Arduino/libraries/Client/ESP8266SocketBase.cpp:191:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^
    Libraries/Client/subdir.mk:41: recipe for target 'Libraries/Client/ESP8266SocketBase.cpp.o' failed
    make: *** [Libraries/Client/ESP8266SocketBase.cpp.o] Error 1

'ESPCONN_SEND' was not declared

What Am I doing wrong?