Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By inx
#33151 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
User avatar
By kolban
#33160 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?
User avatar
By canedje
#33359 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?