MicroOcpp icon indicating copy to clipboard operation
MicroOcpp copied to clipboard

Change WiFi interface for Ethernet

Open kevincsouto opened this issue 1 year ago • 1 comments

Let's define the problem: there is a need to change the network interface from wifi to ethernet. To do so, it is necessary to establish a specialized web socket connection with the micro ocpp library, as the way it operates is not interchangeable for another physical network interface. Therefore, I used the MO_CUSTOM_WS macro and adapted the class for this connection to a new web socket library, as shown in the following image:

Captura de tela 2024-03-05 115355

Here I also established other changes:

image

And I called the settings like this in main.h:

image

The changed library was #include <WebSocketsClient.h> by #include <WebSocketsClients_Generic.h>. However, web socket configurations are complex and trying to adapt existing code with a new library is not being helpful. What is the way forward?

kevincsouto avatar Mar 05 '24 14:03 kevincsouto

I'm using Websockets_generic from Arduino framework library, and it's not working. image

kevincsouto avatar Mar 15 '24 13:03 kevincsouto