converting from ethernet to (node mcu) WiFi

Basically I want to convert the Settimino (arduino Snap7 library) across to WiFi using the nodeMCU as an arduino. I have edited the Settimino library to #include ESP8266WiFi and changed the class from ethernet to WiFi, however I get compiler errors from Arduino IDE that I dont quite know how to fix.

Has anyone else had experience with porting an ethernet based library to wifi or how to fix these errors.

Thank you.

In file included from C:\Users\Geoff-Work\Documents\Arduino\libraries\Settimino\Settimino.h:42:0,

                 from C:\Users\Geoff-Work\Documents\Arduino\libraries\Settimino\Settimino.cpp:26:


\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClient.h: In instantiation of 'size_t WiFiClient::write(T&, size_t) [with T = unsigned char [22]; size_t = unsigned int]':

\Documents\Arduino\libraries\Settimino\Settimino.cpp:426:41:   required from here

\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClient.h:123:36: error: request for member 'available' in 'source', which is of non-class type 'unsigned char [22]'

     size_t left = source.available();

                                    ^

\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClient.h:127:5: error: request for member 'read' in 'source', which is of non-class type 'unsigned char [22]'

     source.read(buffer.get(), will_send);

     ^

\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClient.h: In instantiation of 'size_t WiFiClient::write(T&, size_t) [with T = unsigned char [25]; size_t = unsigned int]':

\Documents\Arduino\libraries\Settimino\Settimino.cpp:446:39:   required from here

\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClient.h:123:36: error: request for member 'available' in 'source', which is of non-class type 'unsigned char [25]'

     size_t left = source.available();

                                    ^

C:\Users\Geoff-Work\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClient.h:127:5: error: request for member 'read' in 'source', which is of non-class type 'unsigned char [25]'

     source.read(buffer.get(), will_send);

     ^

\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClient.h: In instantiation of 'size_t WiFiClient::write(T&, size_t) [with T = unsigned char [35]; size_t = unsigned int]':

\Arduino\libraries\Settimino\Settimino.cpp:543:34:   required from here

\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClient.h:123:36: error: request for member 'available' in 'source', which is of non-class type 'unsigned char [35]'

     size_t left = source.available();

                                    ^

\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClient.h:127:5: error: request for member 'read' in 'source', which is of non-class type 'unsigned char [35]'

     source.read(buffer.get(), will_send);

     ^

exit status 1
Error compiling.

I have the same problem.

Can anyone help?

Hi Norbert and Thersonder. Could you do it yet? I'm working with ethernet shield with no problem but I need a wifi connection, Do you try another wifi board?

Regards

Hi Thersonder,

Have you done it? If not, I think you should contact to owner of the library directly and make a request for porting the lib to another platform.

Hi, I post a topic in snap7 discusion forum but nobody answer the question.
I dont have skills for port it, but I thing than adding wifi inputs and outputs to
0BA7 and 0BA8 Siemens Logo! Is very interesting. Well, I hope somebody
With more programming experience are interested.

Regards