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:
Here I also established other changes:
And I called the settings like this in main.h:
The changed library was #include by #include . 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?
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:
Here I also established other changes:
And I called the settings like this in main.h:
The changed library was #include by #include . 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?